Issues with Date formats

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
hari4dsx
Participant
Posts: 14
Joined: Wed Feb 13, 2008 4:53 am

Issues with Date formats

Post by hari4dsx »

Hello,

I have been trying to convert a date present in a flat file in yyyy-mm-dd format to mm-dd-yyyy format and store it in a database.

I have used a modify stage to convert the given date to string in mm-dd-yyyy format using String_Date_Function.

Now, before loading it into database as the string has to be converted into Date format,I tried to implement this using another modify stage and using function Date_from_string.

But the second Modify stage is giving an error and the job is being aborted.

Can anyone suggest a solution to this problem.

Or,else xan anyone suggest a different way out.

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

Post by ray.wurlod »

Welcome aboard. Two adjacent Modify stages are not supported (this is in the documentation). Put a Copy stage between them.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
hari4dsx
Participant
Posts: 14
Joined: Wed Feb 13, 2008 4:53 am

Post by hari4dsx »

Thanks a lot Mr. Wurlod.
Placing a copy stage in between the modify stage solves the problem.

Regards
Hari
Post Reply