Concatenating Timestamp With a Sequential file

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Either make sure there are no delimiters or spaces in that job parameter, or use a different job parameter that has the same timestamp but without delimiters in the file name.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sravanthi
Participant
Posts: 83
Joined: Fri Jun 02, 2006 5:37 am

genarating a xml file with timestamp

Post by sravanthi »

Hi chulett


I want to generate a file with name_YYMMDDddmmss.xml .If i use name_DSJobStartTimestamp.it is genarting in default format but i need in this format name_YYMMDDddmmss.xml

so want should i do.please suggest some solution.
sravanthi
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

You can get it done through a routine (remover the spaces and hyphens in the routine) prior to running the server job and can then pass the parameter to the server job.
Success consists of getting up just one more time than you fall.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or write a script that runs 'after job' to add that date/timestamp to the filename.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply