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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [SOLVED]using variable to define source tables?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]using variable to define source tables?
 Login/Join
 
Platinum Member
posted
Hi,

Using iWay Datamigrator-

I have designed a flow manually with "Product01" as my source table to load into "Product_new" as my target. I also create a schedule to run this flow daily. Each day will create new table name "ProductXX"(where "XX" would be a counter) so my second day would be "Product02" to append into "Product_new" . is there a way to schedule this flow via source's name change dynamically/sequentially?

This message has been edited. Last edited by: nox,


WebFOCUS v8.2.06 , Windows
 
Posts: 137 | Registered: August 29, 2019Report This Post
Virtuoso
posted Hide Post
Nox

What is the database of Product01? Is it a SQL table or a sequential file?


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2128 | Location: Customer Support | Registered: April 12, 2005Report This Post
Platinum Member
posted Hide Post
Hi Chuck,

Sorry for lack of information. It is SQL Server Database. Base on a daily script it generate the sequential table daily by using different name.


WebFOCUS v8.2.06 , Windows
 
Posts: 137 | Registered: August 29, 2019Report This Post
Virtuoso
posted Hide Post
Nox

Yes this should be possible, you will need to run a DM Stored Procedure prior to the load that will set a &variable with the source table name that will be referenced in the productxx access file in the TABLENAME section. So you only need a single master file for the source file and the TABLENAME portion of the access file will be dynamic based on the &variable, You will need to keep the counter in another table that you increment and then look it up to set the &variable in the DM stored procedure. Hope that makes sense...


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2128 | Location: Customer Support | Registered: April 12, 2005Report This Post
Platinum Member
posted Hide Post
Thanks, I'll give it a try.


WebFOCUS v8.2.06 , Windows
 
Posts: 137 | Registered: August 29, 2019Report 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    [SOLVED]using variable to define source tables?

Copyright © 1996-2020 Information Builders