yydddffhhnnss 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
bhargav_dd
Premium Member
Premium Member
Posts: 57
Joined: Tue Jun 30, 2009 9:38 am

yydddffhhnnss format

Post by bhargav_dd »

Hi,

I have the data in the format yydddffhhnnss format where ff is a sequence number.

I need to convert that to date n time format.
The datatype in DB is timestamp.
Please help me.

How can i convert that. What function will i use..?
I used stringtodate for yyddd. But unable to get the data in right format
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

For the date portion use a format string of "%yy%ddd". You're on the right track.
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