How to abort the job when condition fails?

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
mallikharjuna
Participant
Posts: 81
Joined: Thu Nov 30, 2006 7:46 am
Location: india

How to abort the job when condition fails?

Post by mallikharjuna »

Hi All,

How to abort the job when condition fails without using server transformer in parallel jobs. i have to abort the job by displaying fatal error in the log.

ex: if a>0 then "1" else abort.
MALLI
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Reject link with maximum rows = 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.
mallikharjuna
Participant
Posts: 81
Joined: Thu Nov 30, 2006 7:46 am
Location: india

How to abort the job when condition fails?

Post by mallikharjuna »

ray.wurlod wrote:Reject link with maximum rows = 1. ...

Hi,

i also want to display the custom message in job log, how to do?
MALLI
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Detect the failure in your job sequence and use a Routine activity to invoke UtilityFatalToLog() or UtilityWarningToLog().
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
mallikharjuna
Participant
Posts: 81
Joined: Thu Nov 30, 2006 7:46 am
Location: india

How to abort the job when condition fails?

Post by mallikharjuna »

we are not having any rotine in c++ for using the above said utility and we also not able to use server transformer stage
MALLI
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

So write one.
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