Convert date to charactor

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
deva
Participant
Posts: 104
Joined: Fri Dec 29, 2006 1:54 pm

Convert date to charactor

Post by deva »

Hi ,
I want to convert date or time stamp in to charactor . In server job we don't have functionality like DateToString().

Required output date is Char(8) yyyymmdd.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

In server jobs you have a much more powerful and versatile set of functions, ICONV() and OCONV() which can pretty much convert any date type you can imagine. You've specified the output, but what is the input format?
deva
Participant
Posts: 104
Joined: Fri Dec 29, 2006 1:54 pm

Post by deva »

Can you please give me the formate how to convert the date into charactor.

example 2000/09/23 into 20000923.

Thanks in advance
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Code: Select all

Convert("/","",YourField)
-craig

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