Search found 74 matches

by shalini11
Sun May 31, 2009 9:53 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Null handling in transformer
Replies: 19
Views: 11605

Column is Varchar. In the log following error is displayed:

Xfm,0: Field 'BodyType' from input dataset '0' is NULL. Record sent to reject dataset.
by shalini11
Sun May 31, 2009 9:18 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Null handling in transformer
Replies: 19
Views: 11605

Sorry to say but none of the above solutions are working. The records are still getting rejected. The condition is working fine for other fields. Only 2 fields are creating problem.

Please suggest what to do.

Thanks
by shalini11
Fri May 29, 2009 7:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Null handling in transformer
Replies: 19
Views: 11605

Blank means that the value is not present in the input file.The file is tab delimited
by shalini11
Fri May 29, 2009 7:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Null handling in transformer
Replies: 19
Views: 11605

Null handling in transformer

Hi All, In the transformer, I have given a condition for a column as: If Trim(NullToEmpty(Col1))='' Then 'Unknown' Else Trim(NullToEmpty(Col1)) But the records having Col1 as blank are getting rejected. I dont want to reject the record, rather replace it with "Unknown" if it is blank. The ...
by shalini11
Mon May 18, 2009 4:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to remove all duplicate records
Replies: 4
Views: 2155

Thanks one again for your help

I am able to remove all the duplicate records now with your suggestion
by shalini11
Mon May 18, 2009 3:27 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to remove all duplicate records
Replies: 4
Views: 2155

Thanks for the quick reply

I'll try this and get back to u if i face any difficulty in implementing
by shalini11
Mon May 18, 2009 3:13 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to remove all duplicate records
Replies: 4
Views: 2155

how to remove all duplicate records

Hi All, If the scenario is to remove all the records having duplicate key,the remove duplicate stage or the sort stage removes all except one.But i want to remove all records. Can it be done in Datastage? Ex: Col1 Col2 Col3 1 001 002 1 001 003 2 001 004 3 002 003 In this example, Col1 and Col2 are t...
by shalini11
Tue May 12, 2009 3:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: data not getting inserted correctly in db
Replies: 3
Views: 1315

One thing I forgot to tell u. I am using a change capture stage also in between. The scenario is that i have to compare tableA and table B and insert new records into table B. I think there is some problem with the change capture only becoz when i tried to insert directly from one table to another t...
by shalini11
Tue May 12, 2009 3:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: data not getting inserted correctly in db
Replies: 3
Views: 1315

data not getting inserted correctly in db

Hi All, I am trying to insert data from one table A to another table B. All the columns are just a straight move through a transformer. Table A is having one column which is having values like: Col1 002 004 This Col1 is not getting inserted properly into TableB. In TableB, data inserted is : 0000000...
by shalini11
Wed May 06, 2009 6:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to insert record into table when input file is empty
Replies: 7
Views: 3696

how to insert record into table when input file is empty

Hi All,

I have to load data from a file into database.

When there are no records in the file(empty file), then i want to enter 1 hardcoded record into table.

How can i implement this?Could you pls help.


Thanks
by shalini11
Tue May 05, 2009 6:20 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: if else logic
Replies: 6
Views: 3100

Try this

If Trim(DSLink1.okcucl[1,1])='5' Then '020':Trim(DSLink1.okcucl[2,len(DSLink1.okcucl)])
Else If Trim(DSLink1.okcucl[1,2])='65' Then '030':Trim(DSLink1.okcucl[3,len(DSLink1.okcucl)])
Else '001'
by shalini11
Tue May 05, 2009 6:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Capturing the job status (When running ) in UNIX
Replies: 1
Views: 906

You can check the status of the job.

status=`$DSHOME/bin/dsjob -server ${DS_SERVER} -user ${DS_USER} -password ${DS_PWD} -jobinfo ${DS_PROJ} ${DS_JOB} | grep "Job Status" | tr ')' '(' | cut -f2 -d'('`


For running job, the status should be 0.
by shalini11
Tue May 05, 2009 6:07 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Distinct of a query not retrieving correct result
Replies: 14
Views: 4934

Can you post the query you are using.
by shalini11
Thu Apr 30, 2009 6:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to restore the datastage projects
Replies: 7
Views: 3040

Can it be possible with some data recovery tool available in market?
by shalini11
Thu Apr 30, 2009 5:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to restore the datastage projects
Replies: 7
Views: 3040

There is no backup available.Is there any unix command to recover the deleted data.