Search found 284 matches
- Fri May 06, 2011 3:17 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Weird ODBC Stage Behaviour
- Replies: 6
- Views: 3276
Re: ~
How come everything you post is "weird"? :D Weird is something, I should not have used eh? But then, I could not think of another word in this scenario, because my query works fine outside DataStage but not inside it :) I say Junk rows because, those are not actual data. As I said, same q...
- Fri May 06, 2011 2:07 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Weird ODBC Stage Behaviour
- Replies: 6
- Views: 3276
Weird ODBC Stage Behaviour
I am accessing DB2 database using ODBC Enterprise stage. The query used inside it is running fine when fired on Database using Toad. But the same query when used inside ODBC stage, returns junk rows which are not there in the table. The junk rows returned are in addition to the valid rows and are at...
- Wed Apr 13, 2011 2:02 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal Rounding and convert to Varchar
- Replies: 4
- Views: 2682
- Tue Apr 12, 2011 7:17 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Discard trailing spaces in char field
- Replies: 5
- Views: 1911
Your requirements are bad for a CHAR. If your database target was a varchar, then yes you could 'discard trailing spaces' easily. ... The problem is that the downstream apps which use the sql server target table are facing issues while querying. The field is Char in target as well, but DataStage is...
- Tue Apr 12, 2011 7:00 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Discard trailing spaces in char field
- Replies: 5
- Views: 1911
- Tue Apr 12, 2011 6:36 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Discard trailing spaces in char field
- Replies: 5
- Views: 1911
Discard trailing spaces in char field
Source DB2(ODBC Enterprise)---->Transformer------->Target SQL Sever(ODBC Enterprise) The incoming field is Char(3). Target also it is Char(3) Spaces are being added to end while writing to target. I used Trim in transformer. No change. I tried Convert(). No effect. Any suggestion. Ineed only actual ...
- Tue Apr 12, 2011 6:29 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal Rounding and convert to Varchar
- Replies: 4
- Views: 2682
- Mon Apr 11, 2011 11:58 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Decimal Rounding and convert to Varchar
- Replies: 4
- Views: 2682
Decimal Rounding and convert to Varchar
I have a requirement wherein I need to round off incoming decimal data and convert to varchar and then right to seq file without leading or trailing zeroes. Rounding Off condition as below Suppose data is 345.5 or lower output should be 345 and if it is greater than 345.5 then output should be 346. ...
- Fri Apr 08, 2011 12:18 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Extracting First row of sorted data
- Replies: 15
- Views: 10628
- Fri Apr 08, 2011 3:36 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Extracting First row of sorted data
- Replies: 15
- Views: 10628
Remove Duplicates worked but here is the catch My source has 6 records with same key and different timestamp. Job structure was like ODBC----->RemDuplicate-------->DataSet I was hash partitioning on col1 and col2 with inline sort in rem duplicate stage. Then selected the option Duplicate to Retain =...
- Fri Apr 08, 2011 1:06 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Extracting First row of sorted data
- Replies: 15
- Views: 10628
The combination of col1 and col2 is never a duplicate. Col1 individually may have duplicates but when it combines with col2, then there is no duplicate. So we cannot use remove duplicates stage or even remove duplicates via sort stage. Using header also cannot solve the issue as it will only return ...
- Thu Apr 07, 2011 12:57 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Extracting First row of sorted data
- Replies: 15
- Views: 10628
- Thu Apr 07, 2011 5:05 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Extracting First row of sorted data
- Replies: 15
- Views: 10628
Extracting First row of sorted data
I have the requirement as follows: col1 is sorted ascending and col2 is descending. I need to fetch only the first row of the sort output. The scenario is that col1 contains the key and col2 is timestamp...key is repeated and timestamp is unique. I need only those keys with max(timestamp). So i have...
- Mon Apr 04, 2011 5:43 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Conversion from string to decimal
- Replies: 17
- Views: 12980
- Mon Apr 04, 2011 5:27 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Conversion from string to decimal
- Replies: 17
- Views: 12980