How to capture the rejected rows

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
sharathkedika
Participant
Posts: 3
Joined: Mon May 05, 2008 7:42 am
Location: Newyork

How to capture the rejected rows

Post by sharathkedika »

Hi,

I have a job which pulls the data from XML file and inserts into a table. While reading the data from the XML , in XML-In stage i am getting a record count of 200 (which is correct) . but only 5% of the rows are getting inserted in to table.

I found that, couple of the elements in the XML file carring the wrong data(Elements of date type carring alphabets).

These rows are getting rejected at database level. If these are getting rejected at XML_IN stage , we can capture the rejected rows. But here I am not getting how to capture the rows which are rejected by Oracle stage.

Please help me out.
Thanks and Regards,
sharath
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

put a transform stage right before your DB write stage, and add a reject link to that transform. This is the way to capture rejects in DataStage server jobs.
Post Reply