Capture reject records from log

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
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

Capture reject records from log

Post by dspxlearn »

Hi,

I am wondering if we can capture the number of rejected records using the job log. Usually, if few records rejects the job will finish with warnings and it will show only the number of records loaded but not the number of records rejected.
Can you please let me know how this can be captured?
Thanks and Regards!!
dspxlearn
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

There are a number of ways that records are "rejected" and the answer depends upon exactly what you mean in this case. Usually the best way is to the use stage reject link (when supported) to write these rejects straight to a file.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is a special type of log event generated if a reject-handling link processes any rows. You can use DSGetNewestLogId() or dsjob -lognewest to search for this kind of log event specifically.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply