Tuesday, June 7, 2011

How to change Target file name with session run time?

Doubt:

My flat file name is Tgt_File.txt
Every time when i run my session the target file name should change as Tgt_File_07-06-2011 like that.
Solution:
If u want to change the Target file name everytime u run, then u need to pass Target file name as parameter - $OutputFile1$Param_DATE_TO_ATTACH.csv 
$OutputFile1 - is ur Static part of ur Target file name(Note: $OutputFile_Something - $OutputFile this is mandatory in parameter name)
$Param_DATE_TO_ATTACH - date to attach or any string (Note:$Param_Something -$Param this is mandatory in parameter name) 
.csv - file type.

1 comment: