Search found 6 matches
- Mon Dec 03, 2007 8:20 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Add years to Date
- Replies: 5
- Views: 2981
Re: Add years to Date
Hello, I want to add 100 years for the TimeStamp. How to do it? Thought of adding days, but is there any other way to do this? Thanks in advance. Naidu Buddha Probably the most simplistic approach is (DSJobStartTimestamp[1,4]+100):DSJobStartTimestamp[15] replace DSJobStartTimestamp with whatever yo...
- Fri Nov 30, 2007 6:42 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Previous Weekday From Date
- Replies: 9
- Views: 9299
Hi, Probably not as nice a solution as Ray's but the following will do what you want Create a Function DateOfMostRecentWeekDay(DateIn,DayOfWeek) ***************************************************** * * Will give the date of the most recent weekday to the date * ie if Friday and current date is 28/1...
- Wed Nov 21, 2007 10:56 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: split a string
- Replies: 11
- Views: 7205
Simply use Input1[1,3]:' ':Input1[4,LEN(Input1)-3] That's if your input data is to be ALWAYS split with 3 characters in the first word followed by a space and rest of the characters. What is your criteria for splitting a word into 2? The criteria was implied that the split happened between the 3rd ...
- Wed Nov 21, 2007 10:10 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: split a string
- Replies: 11
- Views: 7205
- Wed Nov 21, 2007 7:32 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: NLS SETTINGS?
- Replies: 5
- Views: 2675
Re: NLS SETTINGS?
You could use the oracle date format RR instead of YY
as in TO_DATE(date,'DD-MM-RR')
I believe it was set up to cope with the transiton between centuries.
as in TO_DATE(date,'DD-MM-RR')
I believe it was set up to cope with the transiton between centuries.
- Wed Nov 21, 2007 5:00 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Commas in data value...How to fix the existing file ?
- Replies: 5
- Views: 1894
Re: Commas in data value...How to fix ?
You could do the seperation in datastage if you wanted. Read the file in with file delimeter 000 quote delimeter 000. Then use the Count($,',')="Correct Number Of Commas" in a constraint and write the results out, with file delimeter 000 quote delimeter 000. You can put the invalid records...