Oracle OCI Rejection Criteria

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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Create another output link, mark it as handling rejected rows but do not have a constraint expression on it.
It will then handle rows rejected by the database, and you can use the SQLSTATE, DBMSCODE and LASTERR link variables from output links executed earlier to supply diagnostic information.
Naturally, the [Rejects] output link must be the final link executed in the Transformer stage; modify link execution order if this is not the case.
Post Reply