Date 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
arshi
Participant
Posts: 50
Joined: Wed Apr 18, 2007 5:12 am

Date Format

Post by arshi »

Hi,

I am facing following date conversion in my job:

Source data in the format: 26062008 (DDMMYYYY)
I required output as in oracle date format and that date is last day of that month.

I tried this :
Iconv(MONTH.LAST(Oconv(in_Trns_Check.XTRCT_DT , "D-DMY[2,2,4]")),"D-DMY[2,A3,4]") .But not working

Any one have the solution please provide.

Regards,
Arshi
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

First observation, you've got the Conv brothers backwards. IConv first, meaning innermost and then OConv second meaning outermost.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Moderator: please move to server forum
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