time conversion

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
dnat
Participant
Posts: 200
Joined: Thu Sep 06, 2007 2:06 am

time conversion

Post by dnat »

Hi,

I have a date in the format 'YYYY-MM-DD' and i want to convert into timestamp format with OCONV. How can i achieve that.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can't.

However, you can do it with concatenation.

Code: Select all

InLink.TheDate : " 00:00:00"
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 »

Exactly... what were you planning on using for the time portion here? If not another field or source then you'll need to do what Ray has shown.
-craig

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