date and time in YYYYMMDDHHMISS format

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dsdev_123
Participant
Posts: 25
Joined: Tue Oct 09, 2007 9:13 pm

date and time in YYYYMMDDHHMISS format

Post by dsdev_123 »

hi

i have a job from dataset to seq file.i need to produce the file as filename.#YYYYMMDDHHMISS#.dat. i have defined one job parameter which defualts to YYYYMMDDHHMISS. i am running this job in the sequencer and i need to pass a function which gives the aboveformat to the job parameter i have defined.Is there any DS sepecific function which gives present date and time in that specific format.

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

Post by ray.wurlod »

CurrentTimestamp() with a "%yyyy%mm%dd%hh%nn%ss" format string should do it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply