string YYYYMMDD to DB2 date column

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
puli.reddy
Participant
Posts: 28
Joined: Wed Jan 11, 2006 8:29 pm
Location: Singapore
Contact:

string YYYYMMDD to DB2 date column

Post by puli.reddy »

Hi All,

I am trying to convert string values to date, but the job is being failed to convert string to date when I was trying with Iconv function with the same string format.
I changed the structure to DD/MM/YYYY then I used Iconv(StrCol,"D/E")
still it is being failed.
Anyone can suggest me to be succeeded the job in loading date column values.

Thanks in advance.
Thnaks and Regards,
AnjiReddy.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try Iconv(StrCol, "DDMY")
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
puli.reddy
Participant
Posts: 28
Joined: Wed Jan 11, 2006 8:29 pm
Location: Singapore
Contact:

Post by puli.reddy »

Thanks allot, It works well .

I tried it earlier, but problem with formatting data into DD/MM/YYYY only.

After saw you reply I thought to ensure the formatted data and I found while ensuring I had done wrongly.
Thnaks and Regards,
AnjiReddy.
Post Reply