PROBLEM - INSERTING RECORDS into DB2 UDB API stage

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ds_search2008
Participant
Posts: 75
Joined: Thu Nov 27, 2008 10:12 am

PROBLEM - INSERTING RECORDS into DB2 UDB API stage

Post by ds_search2008 »

When I insert rows from pivot to DB2 UDB API stage the performance statistics shows 3 rows. However, only 2 rows are getting inserted into DB2 stage. I tried replacing DB2 API stage with a Data Set stage. I am able to get 3 records as Data set output without any issues.

Data Set : output

col1 col2 col3 col4

100 0 7896 Z
100 21 921.4 Z
100 0 Z

(In row 3 the data Z is inserted under col4 and column 3 is blank)

DB2 Stage : output

col1 col2 col3 col4

100 0 7896 Z
100 21 921.4 Z

The third coloumn is not getting loaded into DB2 stage. Could you please help me to resolve this issue.

Thanks
Last edited by ds_search2008 on Thu Nov 27, 2008 10:55 am, edited 1 time in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Does your target field in the table allow nulls?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ds_search2008
Participant
Posts: 75
Joined: Thu Nov 27, 2008 10:12 am

Post by ds_search2008 »

Yes the target field allow null values.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Allow reject in the DB2 stage and put the reject link out to a peek stage to find out why it is being rejected. If no rejects, then check for your unique primary key - what column(s) are used?
ds_search2008
Participant
Posts: 75
Joined: Thu Nov 27, 2008 10:12 am

Post by ds_search2008 »

Yes my job is working fine. Thanks a lot for your kind help.
Post Reply