Hi guys,
The problem has been resolved.
It was padding with space issue itself. Dont know why ltrim and rtrim didnt work, but when i did 'REPLACE(Some_Field, ' ', '')' it gave me proper distinct records.
Thanks a lot to all!
Search found 15 matches
- Wed May 06, 2009 3:48 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Distinct of a query not retrieving correct result
- Replies: 14
- Views: 4943
- Wed May 06, 2009 3:27 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Distinct of a query not retrieving correct result
- Replies: 14
- Views: 4943
- Wed May 06, 2009 12:39 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Distinct of a query not retrieving correct result
- Replies: 14
- Views: 4943
Thanks, but just wanted to know why this happened? Is it because the column length is character 15 and my column value is just 6? Actually, i populate this table through Datastage. I am doign a substring in my transformer and take this column value. I run this Job every tuesday. It never happened ti...
- Wed May 06, 2009 12:11 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Distinct of a query not retrieving correct result
- Replies: 14
- Views: 4943
- Wed May 06, 2009 12:10 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Distinct of a query not retrieving correct result
- Replies: 14
- Views: 4943
- Tue May 05, 2009 10:58 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Distinct of a query not retrieving correct result
- Replies: 14
- Views: 4943
- Tue May 05, 2009 5:37 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Distinct of a query not retrieving correct result
- Replies: 14
- Views: 4943
Distinct of a query not retrieving correct result
Hi,
I did a distinct on a single table on User id. I am still getting duplicate user_ids. Not sure why. (I am selecting only User id )
Even when i trim the spaces off and do a distinct, it is giving me duplicate rows.
I did a distinct on a single table on User id. I am still getting duplicate user_ids. Not sure why. (I am selecting only User id )
Even when i trim the spaces off and do a distinct, it is giving me duplicate rows.
- Tue Mar 24, 2009 5:55 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Sequence generated in DB2
- Replies: 8
- Views: 3281
- Tue Mar 24, 2009 1:26 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Sequence generated in DB2
- Replies: 8
- Views: 3281
- Tue Mar 24, 2009 12:54 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Sequence generated in DB2
- Replies: 8
- Views: 3281
- Mon Mar 23, 2009 11:22 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Sequence generated in DB2
- Replies: 8
- Views: 3281
Sequence generated in DB2
Hi,
I have generated a Sequence in DB2. How can i import or use it in Datastage? I want to use it as a key generator in my Job.
I have generated a Sequence in DB2. How can i import or use it in Datastage? I want to use it as a key generator in my Job.
- Mon Mar 16, 2009 7:03 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Getting NULL handling warning even when checking for NULL
- Replies: 2
- Views: 1498
- Mon Mar 16, 2009 6:18 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Getting NULL handling warning even when checking for NULL
- Replies: 2
- Views: 1498
Getting NULL handling warning even when checking for NULL
Hi, My Job uses 2 sources, then a change capture stage then inserting the changed records in my DB2 stage. I am getting below mwnetioned warning: " Assignment of a NULL value to a NOT NULL column "TBSPACEID=4, TABLEID=114, COLNO=0" is not allowed. SQLSTATE=23502 " I am getting th...
- Fri Jan 02, 2009 12:43 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Retrieval of data from a file
- Replies: 9
- Views: 5854
Hi, Thanks for your reply. I am not a Premiuim account holder so i could not see half of your 2nd message. I did change the format to fixed width. By display width do you mean the Field width that you get after double clicking each column? I changed that also. But got the below mentioned error: &quo...
- Thu Jan 01, 2009 11:24 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Retrieval of data from a file
- Replies: 9
- Views: 5854
Retrieval of data from a file
Hi, I have a file. It has lot of columns. However, some columns are together without any space in between them and some have space. For eg: 0000492007-02-28 1020001 1 5066 0.4 000049 is first column 2007-02-28 is second 1020001 is third. What property do i need to set in my sequential stage to get t...