Date in MMDDCCYY format

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
Raamc
Premium Member
Premium Member
Posts: 87
Joined: Mon Aug 20, 2007 9:08 am

Date in MMDDCCYY format

Post by Raamc »

Hi All,

Can any one help me to conver the system date into DDMMCCYY format?

I coluld not find any equivalent VM-CONVERSION character in OCONV function.
Thanks,
Raamc
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Just convert it to day-month-year format and then strip your delimiter with something like Convert().
-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 »

Code: Select all

Oconv(Date(), "DDMY[2,2,4]" : @VM : "MCN")
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 »

Or that, the equivalent of using the DIGITS transform. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Raamc
Premium Member
Premium Member
Posts: 87
Joined: Mon Aug 20, 2007 9:08 am

Post by Raamc »

Thanks Ray,

It is perfectly working.
Thanks,
Raamc
Post Reply