Search found 88 matches
- Wed Oct 12, 2005 6:16 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
- Replies: 18
- Views: 7467
Doesn't Oracle expect a '/' instead of a space in the default date format? This is the sql that is getting generated INSERT INTO RNKT0.ATTENDANCE (ATTENDANCE_ID,CUSTOMER_ID,HostMember_ID,Club_ID,Attendance_Date) VALUES (:1,:2,:3,:4,TO_DATE(:5, 'YYYY-MM-DD HH24:MI:SS')) Can I change this sql somehow...
- Wed Oct 12, 2005 4:37 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
- Replies: 18
- Views: 7467
Doesn't Oracle expect a '/' instead of a space in the default date format? This is the sql that is getting generated INSERT INTO RNKT0.ATTENDANCE (ATTENDANCE_ID,CUSTOMER_ID,HostMember_ID,Club_ID,Attendance_Date) VALUES (:1,:2,:3,:4,TO_DATE(:5, 'YYYY-MM-DD HH24:MI:SS')) Can I change this sql somehow...
- Wed Oct 12, 2005 4:34 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
- Replies: 18
- Views: 7467
Doesn't Oracle expect a '/' instead of a space in the default date format? This is the sql that is getting generated INSERT INTO RNKT0.ATTENDANCE (ATTENDANCE_ID,CUSTOMER_ID,HostMember_ID,Club_ID,Attendance_Date) VALUES (:1,:2,:3,:4,TO_DATE(:5, 'YYYY-MM-DD HH24:MI:SS')) Can I change this sql somehow...
- Wed Oct 12, 2005 4:13 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
- Replies: 18
- Views: 7467
- Wed Oct 12, 2005 4:03 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
- Replies: 18
- Views: 7467
- Wed Oct 12, 2005 3:06 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
- Replies: 18
- Views: 7467
Thanks a lot to everyone who answered my query. I was able to get loads of information by going through the documentsray.wurlod wrote:There are also good examples in on-line help for Oconv.
This article is also informative.
- Wed Oct 12, 2005 3:03 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Handling Null values
- Replies: 9
- Views: 2963
- Tue Oct 11, 2005 10:22 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Handling Null values
- Replies: 9
- Views: 2963
Handling Null values
Hi, I am trying to read a sequential file and updating a Oracle database using OCI stage. The sequential file has null values in a field1 which is hardcoded as NULL. I am uploading this data to oracle which is a NUMBER field. I tried to define the NULLABLE field as NULL in the sequential file stage....
- Tue Oct 11, 2005 7:39 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
- Replies: 18
- Views: 7467
dprasanth, yes, it does signify something, it is the output format. Please open up the BASIC programmer's guide on your PC and look up the chapter on conversion codes, specifically for the Date conversion. There are examples in there that should clear up some of your questions. Excellent.. thanks f...
- Tue Oct 11, 2005 7:31 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
- Replies: 18
- Views: 7467
You need to do this in 2 steps, first convert the date portion into internal format telling it what the formatting is, then convert it to an output format in the new format. OCONV(ICONV(In.DateColumn[1,11],'D4MDY'),'D4DMY'[2,3,4]):In.DateColumn[12,99] This takes your text date and tells Datastage t...
- Tue Oct 11, 2005 7:16 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
- Replies: 18
- Views: 7467
You need to do this in 2 steps, first convert the date portion into internal format telling it what the formatting is, then convert it to an output format in the new format. OCONV(ICONV(In.DateColumn[1,11],'D4MDY'),'D4DMY'[2,3,4]):In.DateColumn[12,99] This takes your text date and tells Datastage t...
- Tue Oct 11, 2005 7:13 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
- Replies: 18
- Views: 7467
You need to do this in 2 steps, first convert the date portion into internal format telling it what the formatting is, then convert it to an output format in the new format. OCONV(ICONV(In.DateColumn[1,11],'D4MDY'),'D4DMY'[2,3,4]):In.DateColumn[12,99] This takes your text date and tells Datastage t...
- Tue Oct 11, 2005 5:43 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
- Replies: 18
- Views: 7467
Conversion of date from (Mon dd yyyy hh:mmAM) to (dd-mon-yyy
Hi, I am very much new to datastage. I am having a sequential file that I am using as an input stage. The file has the following record format 1|517032108|"NULL"|97|"Apr 12 1998 12:00AM"|""|"M"|"SYSTEM"|"09-06-2002"|"N"|"END^...