define your input column as Date, length 10 bytes. Set date_format='%(m,s)/%(d,s)/%yyyy', so DS will convert it to the default format is "%yyyy-%mm-%dd.Shailendra_dstage wrote:my input is '1/19/2011' i am reading as varchar. I need to convert it to '2010-01-19'
Search found 2 matches
- Fri Feb 18, 2011 3:19 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: convert 'mm/dd/yyyy' to 'yyyy-mm-dd'
- Replies: 4
- Views: 5153
Re: convert 'mm/dd/yyyy' to 'yyyy-mm-dd'
- Wed Dec 29, 2010 11:39 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Difference in Sequential File stage between DS 7.5 and 8.1
- Replies: 1
- Views: 1685
Difference in Sequential File stage between DS 7.5 and 8.1
I am using Sequential File stage (read from a text file) to read a varchar field with hex value like '0000CF' into an integer field. This works good in DS 7.5, but not work in 8.1. Anyone knows what caused it and how to fix?
Thanks!
Thanks!