String To TIme

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
dssiddu
Participant
Posts: 66
Joined: Mon Nov 07, 2005 10:28 pm
Contact:

String To TIme

Post by dssiddu »

Hi All

My Src Field Varchar(6) I/p like this 120000
I want to convert to 12:00:00 of time data type.
Modify does that but i dont want to use that . Done with StringtoTime function no use and also Col[1,2]:Col[3,2]:Col[5,2] also no use
basicaly getting ******** values .

Please shout your solutions Adv thanks a ton ton
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Insert the delimiters THEN invoke StringToTime(). Or specify a time format picture of "%hh%nn%ss" (without delimiters, you will observe) when invoking StringToTime() with the original string.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dssiddu
Participant
Posts: 66
Joined: Mon Nov 07, 2005 10:28 pm
Contact:

Post by dssiddu »

Hi RAY

Thanks a lot For your info.
Post Reply