Populate date as Timestamp

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

Post Reply
sumesh.abraham
Participant
Posts: 153
Joined: Thu May 11, 2006 1:52 am
Location: Bangalore

Populate date as Timestamp

Post by sumesh.abraham »

Hi All,

I want to populate todays's date as '11/05/2008 12:00:00'. How can I do other than hardcoding as
OConv(@DATE,"D-YMD"):'12:00:00'

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

Post by ray.wurlod »

Why do you want to do "other than"? It's a perfectly valid approach. Anyway, one "other than" approach is to decompose your source date using substring techniques then re-assemble it with concatenation, adding the time portion.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That's not "hard-coding". What is your target - a database? The format will probably need to be slightly different if that's the case.
-craig

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