how to capture bad format rejects

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
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

how to capture bad format rejects

Post by Krazykoolrohit »

Hi

Can anyone tell me how do i capture format rejects or dropped records in a server job.

I am not able to see any "reject link" option here. My job structure is:

Seq File - > Transformer - > sql server

I just want to capture all records with wrong schema at seq file stage and those records who drop at transformer due to any reason. There was a reject link in parallel jobs. But i cannot find it here.

thanx,
Rohit
meena
Participant
Posts: 430
Joined: Tue Sep 13, 2005 12:17 pm

Post by meena »

Hi Rohit,

There is an option avialable in the server jobs too. It is Link variable. Check for this in the tranformer by right clicking,you will find an option Linkvariables-->Output & Constant.Check with it.
You can catch you rejects based your specification.
just want to capture all records with wrong schema at seq file stage and those records who drop at transformer due to any reason. There was a reject link in parallel jobs. But i cannot find it here.
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

Thanx meena,

Is there anything for bad record format to be captured in sequential file stage?
meena
Participant
Posts: 430
Joined: Tue Sep 13, 2005 12:17 pm

Post by meena »

Hi
If you mean rejects from the sequential file then 'NO'.
Xpert
Premium Member
Premium Member
Posts: 85
Joined: Wed Mar 01, 2006 7:17 am

Post by Xpert »

meena wrote:Hi
If you mean rejects from the sequential file then 'NO'.
Hi,

Meena is right. In server Jobs, we cant able to capture the reject records at source level. But In Parallel Jobs, we can do.
With regards,
Xpert
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not totally true, but close enough. The way to do it is to read the file as containing a single VarChar column, parse it in a Transformer stage, and make the accept/reject decision while parsing.
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