Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [SOLVED]using variable to define source tables?
Go
New
Search
Notify
Tools
Reply
  
[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: 135 | Registered: August 29, 2019Reply With QuoteReport 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: 2132 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport 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: 135 | Registered: August 29, 2019Reply With QuoteReport 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: 2132 | Location: Customer Support | Registered: April 12, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Thanks, I'll give it a try.


WebFOCUS v8.2.06 , Windows
 
Posts: 135 | Registered: August 29, 2019Reply With QuoteReport This Post
  Powered by Social Strata  
 

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