Error handling

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
mfanas
Participant
Posts: 8
Joined: Wed Sep 27, 2006 9:15 am
Location: South Africa

Error handling

Post by mfanas »

Hi all. I'm new in Datastage development and I need to migrate data from a staging table to a final table on DB2. I need to only export data that conform to the business rules to the final table and all the rest sent to an error table. How can I achieve this, is Reject table appropriate for this and if yes how do I do it.

Thank you in advance.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use a Transformer stage output link constraint to enforce your business rule. Good rows are pushed out that output link; all other rows (the rejects) can be pushed out a second output link by making the second output list a "rejects" link.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mfanas
Participant
Posts: 8
Joined: Wed Sep 27, 2006 9:15 am
Location: South Africa

Post by mfanas »

Thanks Ray I'll try that...
Post Reply