Search found 15 matches

by Abhyankar
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

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!
by Abhyankar
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

Hi,
The value for '000051'
came as '303030303531000000000000000000' and '303030303531202020202020202020'

Seems the second is padded with space. Thanks. But then why am i not getting the correct result when i am doing a ltrim and rtrim?
by Abhyankar
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...
by Abhyankar
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

How can i check for junk char values?
by Abhyankar
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

Hi, Yes, it is a char 15 column. I did a ltrim as well as rtrim on that column. Also, i checked the length of it.. Basically i did a "select length(ltrim(rtrim(<column_name>))) from table where <column_name> like '%000051%'" Surprisingly it gave me two values 15 and 6. Now the value is 6 s...
by Abhyankar
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

Hi i am just doing a
select distinct <column_name> from <Table> in DB2.

I am getting few column names more than once.
by Abhyankar
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.
by Abhyankar
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

Thanks everyone. The problem is solved now.
by Abhyankar
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

Hi,
i didnt understand= 'Specifically you do not include the name of the key column in your design.'

Am i not supposed to add my key column (The one i am doing NEXTVAL with ) in the columns property of my DB2 stage?
by Abhyankar
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

Thanks i did that. I changed the property to 'User defined Sql'. However i had other columns also, so i changed my target syntax as: INSERT INTO schema name .Table name ( Key field,col1,col2 ) VALUES ( NEXTVAL FOR schema name .Sequence name,?,? ) My Job is aborting saying below: " Fatal Error: ...
by Abhyankar
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.
by Abhyankar
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

Thanks mike. Will check that!
by Abhyankar
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...
by Abhyankar
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...
by Abhyankar
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...