Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] DATA MIGRATOR - Assign Synonym value to Variable

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] DATA MIGRATOR - Assign Synonym value to Variable
 Login/Join
 
Member
posted
Hi,
I want to read a source synonym field value into a variable. sourceSynonym would have multiple rows and want to assign only one of the value (conditional) to variable. How would I do this in data migrator?

Thanks
Dipjen

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8
Windows, All Outputs
 
Posts: 16 | Registered: July 15, 2016Report This Post
Virtuoso
posted Hide Post
 SQL
SELECT COUNTRY
FROM CAR
WHERE CAR = 'JAGUAR'
;
TABLE 
ON TABLE HOLD AS OUTLINE
END
-RUN
-READFILE OUTLINE
-? &C 


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Member
posted Hide Post
Hi,
thank you for replying. I got it working and now need bit more info.

I am storing returning query value in amper variable &lastreaddatetime. Its Apha value. I am trying to use this value in the data migrator flow, as select order,orderline,qty from order where moddate > &lastreaddatetime.

when i do -Type &lastreaddatetime its showing 0000192017/09/01 00:01:15 instead of 2017/09/01 00:01:15. How do I convert it to proper date.?

Thanks


WebFOCUS 8
Windows, All Outputs
 
Posts: 16 | Registered: July 15, 2016Report This Post
Virtuoso
posted Hide Post
Dipjen

It must be a varchar field and the 000019 is the length of the field. You can do the following to get rid of the length part.

-SET &leastreaddatetime = EDIT(&leastreaddatetime,'$$$$$$9999999999999999999');


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Member
posted Hide Post
In my process flow, i have steps as following:
steps:
[start]
2nd --> [set parameter] I default &lastreaddatetime = somevalue
3rd --> [procedure] that gets the date value from sql table and set to &lastreaddatetime amper variable
4th --> [data flow] that gets this &lastreaddatetime

so, value that i set in [set parameter] gets passed to my dataflow. But that value I changed in procedure to read from synonym is not seem to get set in step 3 in above. How do I get to get the value that is set by procedure here to pass to dataflow ?

my procedure looks like this:
 

SQL
SELECT lastreaddatetime FROM tbcontroltable WHERE CTLNAME='lastread';
TABLE 
ON TABLE HOLD AS HOLD01 FORMAT ALPHA
END
-RUN
 
-READ HOLD01  &lastreaddatetime.A24.
-TYPE TEST: &lastreaddatetime
-SET &lastreaddatetime = EDIT(&lastreaddatetime,'$$$$$$9999999999999999999');
-TYPE test1: &lastreaddatetime
-EXIT

 


WebFOCUS 8
Windows, All Outputs
 
Posts: 16 | Registered: July 15, 2016Report This Post
Virtuoso
posted Hide Post
Dipjen

That looks correct to me. Is it working?


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] DATA MIGRATOR - Assign Synonym value to Variable

Copyright © 1996-2020 Information Builders