Reading Date from MS-Excel
Posted: Tue Jul 27, 2004 12:37 pm
Hi,
I am reading date values from Excel file(.csv) data in the mm/dd/yyyy,i used Sqquential file stage to read the data and i have to write this date into UDB DB2.here IConv and Oconv are not working as iam using Parallel jobs.
I used Varchar data type in Sequential file stage.
I used StringToDate function to convert into Date Format.
I used Date data type in DB2 stage ,but not writing into the database.
When i view the data in DB2 stage it's showing like "(3)(1968/01/03)".
It's treating 3rd Jan 1968 as (3)(1968/01/03).As Datastage takes
31 st Dec 1967 as base value with 0(zero),it's converting into
(3)(1968/01/03).
Is there any other functions to convert into date format?
It's urgent ,If anybody give reply i would appreciate them and advance thanks to them.
thanks
I am reading date values from Excel file(.csv) data in the mm/dd/yyyy,i used Sqquential file stage to read the data and i have to write this date into UDB DB2.here IConv and Oconv are not working as iam using Parallel jobs.
I used Varchar data type in Sequential file stage.
I used StringToDate function to convert into Date Format.
I used Date data type in DB2 stage ,but not writing into the database.
When i view the data in DB2 stage it's showing like "(3)(1968/01/03)".
It's treating 3rd Jan 1968 as (3)(1968/01/03).As Datastage takes
31 st Dec 1967 as base value with 0(zero),it's converting into
(3)(1968/01/03).
Is there any other functions to convert into date format?
It's urgent ,If anybody give reply i would appreciate them and advance thanks to them.
thanks