Date format

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
kiran259
Participant
Posts: 48
Joined: Thu Aug 16, 2007 11:17 pm
Location: United States
Contact:

Date format

Post by kiran259 »

Hi,
My input file date format is of type eg:17-May-2008.The database I am using is DB2 and its date format is yyyy-mm-dd.Can I have a solution for loading this type of input file format in terms of DB2 date?


Thanks in Advance
Kiran.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If you are using the data type of "Date" and correctly convert in the source string into that format then you should have no worries when writing that to DB2.
kiran259
Participant
Posts: 48
Joined: Thu Aug 16, 2007 11:17 pm
Location: United States
Contact:

Post by kiran259 »

Thank you..In fact,my input file timestamp is 11-May-2008 22:21:00.So I have customized the timestamp format to %dd-%mmm-%yyyy and I got the timestamp output which is compatible to DB2.Previously Iam using varchar data type to load this format and hence I have a problem.

Thanks for your suggestions
Kiran
Post Reply