Capturing the non existing records

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
major
Premium Member
Premium Member
Posts: 167
Joined: Mon Nov 26, 2007 12:21 am

Capturing the non existing records

Post by major »

Hi all,

I need to load around 20 tables , i have separate jobs for each one of them.
Daily some of the records are rejected in one or all jobs and i have an error file to capture them with different user defined error messages ( a single file for all jobs)
Each record will have an unique no.
Now my req is i need to capture the record which is rejected for very first time.

For example if a record is rejected in 3rd,13th and 20th jobs then my error file should contains the rejected record in 3rd job.

Thanks in advance
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I would probably initially capture them to separate reject / error files and then add a post-processing job that builds the combined / finalized file and enforces your 'only from the first job' rule. Of course you'd need some kind of intelligent naming convention so they sort properly in order to facilitate that.
-craig

"You can never have too many knives" -- Logan Nine Fingers
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

or add a column in the file which keeps the job number so that you can identify the rejects from first job.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
major
Premium Member
Premium Member
Posts: 167
Joined: Mon Nov 26, 2007 12:21 am

Post by major »

Hi all,

Thanks for your suggestions , i will give a try and get back
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:?:
Small philosophical problem with the subject line.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
major
Premium Member
Premium Member
Posts: 167
Joined: Mon Nov 26, 2007 12:21 am

Post by major »

Hi all,

The suggestions have been working successfully..
Thanks again.
Next time i will come up with a more apt subject line ... :lol:
Post Reply