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] DataMigrator - To append current date in destination file name

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] DataMigrator - To append current date in destination file name
 Login/Join
 
Member
posted
Using DataMigrator - Version 7 Release 7.06.
Source is database table and destination is a flat file. For example, if the job name is 'ABC' and job run date is today (17/09/2015) then the naming convention for the destination file should be 'ABC-20150917.txt'. So how do I append the current date so that it dynamically added in destination file name.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 8
Windows, All Outputs
 
Posts: 3 | Registered: June 12, 2015Report This Post
Member
posted Hide Post
Can anyone help me on this topic?


WebFOCUS 8
Windows, All Outputs
 
Posts: 3 | Registered: June 12, 2015Report This Post
Virtuoso
posted Hide Post
Edit the .mas file in the DMC and add a global parameter to it. Then change the DATASET reference to the variable:

 DATASET='&&OUTFILE', $ 


Use a variable object in the process flow to set the value before the data flow object:

 &&OUTFILE = 'baseapp/ABC-' || &YYMD || '.txt' 


You can change 'baseapp' to any application name.


"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
Virtuoso
posted Hide Post
Here is a the real example of a .mas:

FILENAME=SAMPLE_HALFWIDTH_CSV, SUFFIX=DFIX    ,
 DATASET=&&OUTFILE, $
 VARIABLE NAME=&&OUTFILE,  DEFAULT='files/sample_20150901.csv', $
  SEGMENT=SAMPLE_HALFWIDTH_CSV, SEGTYPE=S0, $
    FIELDNAME=FIELD_1, USAGE=I3, ACTUAL=A1, $
    FIELDNAME=FIELD_2, USAGE=I10, ACTUAL=A8, $  


The set statement:

&&OUTFILE='files/sample_' || &YYMD || '.csv'  


"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
  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] DataMigrator - To append current date in destination file name

Copyright © 1996-2020 Information Builders