Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with Date variables please!

Status
Not open for further replies.

srjosyula

Technical User
Apr 27, 2006
22
US
Hey!
my outfile name is flatfile_report.txt
How can I get the current date in from of the report name everytime it is generated?
Like in Unix we do
${CURR_DT}flat_file_report.txt

it gives
20061012flatfile_report.txt


Anything we can do in informatica at the session or mapping level?

Thanks in advance
 
No, you need to run a command task that renames the outputfile directly after the original session completes.

Something like :

Code:
%DATE%flatfile_report.txt

like:

rename [Drive:][Path] flatfile_report.txt %date%flatfile_report.txt



Ties Blom

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top