Craig,
Found the issue, Both index(),position and Ray's code were working fine. Issue was, there was an EM dash and dash between the description. Replaced the em dash with single dash and now it worked.
Search found 144 matches
- Tue Nov 18, 2014 2:41 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Substring function when find a dash
- Replies: 7
- Views: 5968
- Tue Nov 18, 2014 9:42 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Substring function when find a dash
- Replies: 7
- Views: 5968
- Mon Nov 17, 2014 11:39 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion (YYYY-MM-DD to MM-DD-YYYY)
- Replies: 6
- Views: 5539
- Mon Nov 17, 2014 11:07 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion (YYYY-MM-DD to MM-DD-YYYY)
- Replies: 6
- Views: 5539
- Mon Nov 17, 2014 10:39 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion (YYYY-MM-DD to MM-DD-YYYY)
- Replies: 6
- Views: 5539
- Mon Nov 17, 2014 10:09 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Date Conversion (YYYY-MM-DD to MM-DD-YYYY)
- Replies: 6
- Views: 5539
Date Conversion (YYYY-MM-DD to MM-DD-YYYY)
All, Need a help in date conversion. I searched quite a bit but could not find the specific conversion function. My input is from DB2 and data type is DATE which is YYYY-MM-DD for format. The output is in sequential file (.txt) and it needs to be MM/DD/YYYY format. I used the below function, but not...
- Mon Nov 17, 2014 10:03 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Substring function when find a dash
- Replies: 7
- Views: 5968
- Mon Nov 17, 2014 11:08 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Substring function when find a dash
- Replies: 7
- Views: 5968
Substring function when find a dash
All, Have an issue with the substrng function in server job. I three columns coming from several DB2 inputs. All having date, description and count. Like, Date Count Customer_cd 11-10-2014 125 3- Marketing client I need to have only 3 instead of 3- Marketing client. The code may change so cant use s...
- Wed Nov 12, 2014 12:23 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: DATE ISSUE WHILE LOADING
- Replies: 2
- Views: 3633
Craig, Sorry for the late reply. I found the issue and solved it. The problem was, the input is in DB2 and datetime is in GMT. So, when any phone call comes in after 12.AM, it was taking the next day instead of current day. But technically it is current day not next day. I used an IF function in tra...
- Mon Nov 10, 2014 10:32 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: DATE ISSUE WHILE LOADING
- Replies: 2
- Views: 3633
DATE ISSUE WHILE LOADING
All, Need a help in DATE issue in server job. We have two columns which are creating the issue due to day light saving. Call_Attend Call_Ended 2014-11-05 11.55PM 2014-11-05 11.59PM So, these two input columns should have the same date. Now for time change some of the records inserted as, Call_Attend...
- Tue Sep 09, 2014 2:03 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Single column to multiple
- Replies: 7
- Views: 5601
- Tue Sep 09, 2014 1:30 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Single column to multiple
- Replies: 7
- Views: 5601
- Tue Sep 09, 2014 1:12 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Single column to multiple
- Replies: 7
- Views: 5601
Single column to multiple
All, Need suggestion on splitting one columns to multiple. I have one column like: Column1 12:10:07: Dialing 12:10:07: Connecting 12:10:07: ABC: abc:9433769782$100.88.77.0:8787 12:10:09: ABCD: 0000 How can we split the column into two columns. Can we use any substring function. Column 1 (Time), Colu...
- Wed Sep 03, 2014 8:52 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Fixed Width Length
- Replies: 4
- Views: 4412
- Thu Aug 28, 2014 2:40 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Fixed Width Length
- Replies: 4
- Views: 4412
Craig. Thanks. That's what i thought. There is no delimiter. It has always been a fixed width length file. There was a change in source system. After that we are getting the file like that. The problem is in the last column where the change occurred. Column looks like, SS01012005PP which is char(12)...