Page 1 of 1

file creation

Posted: Sun Nov 23, 2008 11:22 pm
by dsuk
Hi,

there is one job which is running frequently and generating file in target. my requirement is how to suffix timestamp with the file name.

Example:
file_name_2008_11_24_12_49_14

that means filename_yyyy_mm_dd_hh_mn_ss format.


thanks in advance

Posted: Mon Nov 24, 2008 12:26 am
by hamzaqk

Posted: Mon Nov 24, 2008 12:59 am
by John Smith
You just need to pass in the timestamp as a Job parameter and reference that in your file stage.

Posted: Tue Nov 25, 2008 9:52 pm
by dsuk
need to suffix timestamp in the file name as the job finish timestamp.

Posted: Tue Nov 25, 2008 9:54 pm
by dsuk
Need to suffix timestamp in the file name as the job finish timestamp.

Posted: Tue Nov 25, 2008 10:04 pm
by chulett
Then you'll need to do it "after job". Write to a static name and add the timestamp after the job finishes.

Posted: Wed Nov 26, 2008 10:07 pm
by dsuk
my problem is to name the file as per the finish timestamp of the job.

lets say job finished at 11/26/2008 3:34:11 PM. so my file name should be like filename_11_26_2008_3_34_11_PM. the timestamp is dynamic so we can't pass the timestamp as the parametere in the job properties.

Regards,
dsuk

Posted: Thu Nov 27, 2008 12:09 am
by chulett
Understood. Suggestion was to use the current time, not a Job Parameter. A script called "after job" could easily do this.