Integer to Date

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
diamondabhi
Premium Member
Premium Member
Posts: 108
Joined: Sat Feb 05, 2005 6:52 pm
Location: US

Integer to Date

Post by diamondabhi »

I have an integer source(AS400) field which I need to convert into DB2UDB date field.
The value of the field is like this 060526(yymmdd). Please let me know the best way to do it.

Thanks in advance.
Abhi.
Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

How about this?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Nageshsunkoji
Participant
Posts: 222
Joined: Tue Aug 30, 2005 2:07 am
Location: pune
Contact:

Post by Nageshsunkoji »

Hi,

First put your integer in a string field in a stage variable and convert that function into date by using StringToDate function as in the link suggested by Dsguru2B.
NageshSunkoji

If you know anything SHARE it.............
If you Don't know anything LEARN it...............
Post Reply