Ora_Xfr_seq- Date 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
reddysrc
Participant
Posts: 39
Joined: Mon May 30, 2005 3:19 pm

Ora_Xfr_seq- Date conversion

Post by reddysrc »

Hi All,

I am trying to convert date format 20070331 24.2xxx to YYYYMMDD getting blanks in my target seq files.

using ds7.5.2 server jobs

i am pulling data from Oracle and loading into sequential file .

tried with Oconv(Iconv( input, "D/YMD[4,2,2]","D YMD[4,2,2]")

but not seeing any dates in my target.

let me know how to make conversion.

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

Post by ray.wurlod »

Welcome aboard. :D

Try it with no conversion at all, and see what you get in the target file. Post that result here, then we'll offer advice.

You will probably need to apply an Iconv() function before using the Oconv() function, but exactly what form the second argument of each needs to take depends upon the format delivered from Oracle.
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 »

The answer depends on the datatype of the field in your job and if you are generating sql or have rolled your own.
-craig

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