Failed job showing job status OK

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
tsamui
Participant
Posts: 23
Joined: Fri May 04, 2007 3:05 am
Location: Kolkata

Failed job showing job status OK

Post by tsamui »

Hi all,
In my parallel job my target table is one Oracle table which has indexes and one primary key.
I am using oracle enterprise stage and put the index mode option Rebuilt.
When any duplicate record come from input, it load the duplicate data in target and showing job status is OK, finish with warnings. But when I open the job log it showing fatal error with message --------

Oracle call failed; sqlcode = -12,801; message: ORA-12801: error signaled in parallel query server P003
ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found,

If this kind of error happens, I want the job status should be in aborted state. How I will achieve this?
Thanks&Regards
-------------------
Tsamui
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In an after-job subroutine check the log for this particular warning and set the ErrorCode argument to a non-zero value.

Code: Select all

FindStr "ORA-12801" In DSGetLogSummary(DSJ.ME,...)
Then ErrorCode = 1
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