Page 1 of 1

How to create Sequence file with date stamp?

Posted: Sat Jan 12, 2008 9:22 am
by SURA
Hi,

I need to create a sequence file in daily basic with current date as the part of the file name.

Eg: If i run the job today then the file name should be Out_12_01_08.txt

How to do this?

Pls help me.


Sura

Posted: Sat Jan 12, 2008 10:28 am
by chulett
You either need to pass the 'stamp' in as a job parameter (we do this) and then use #it# in the name, or create a constant filename and then rename it in the O/S after job. It's been discussed here a bajillion times.

Posted: Sat Jan 12, 2008 10:35 am
by samsuf2002

Posted: Sat Jan 12, 2008 3:34 pm
by just4u_sharath
Usually a sequence starts with a user variables activity. In that activity create a new row and give the name as "date" and on the right side give value as 'out_':DSjobStartdate( this is DSmacro):'.txt'. Now in the output file name use "#uservariable activity name.date#'. If this process looks weird you can directly use as a parameter called directly form sequencer