Dta Formatting

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
shiva459
Premium Member
Premium Member
Posts: 100
Joined: Wed Jun 11, 2003 1:49 am
Location: Bangalore

Dta Formatting

Post by shiva459 »

Hi
I have date in 2002-10-25 format and i want to have in MMMYYYY format
I am not able to use the Iconv and Oconv functions as they doesn't have the given format.Any help is appreciated.
[:)]

Shivakumar
shiva459
Premium Member
Premium Member
Posts: 100
Joined: Wed Jun 11, 2003 1:49 am
Location: Bangalore

Post by shiva459 »

Hi
I've found the way
Thanks
Shiv

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

Post by ray.wurlod »

This CAN be done with Iconv and Oconv. For example:

Convert(" ","",Oconv(Iconv(TheDate, "DYMD"), "DMBY[A3,4]"))

Ray Wurlod
Education and Consulting Services
ABN 57 092 448 518
Post Reply