break out of a script

How do you break out of a job where there is a script…

So

Try -> Script -> DF -> Catch

In the Script I want to check and if it doesn’t meet the requirements I want to EXIT out from the Job

So far everything I try doesn’t work and the job runs through to the end…


di652 (BOB member since 2005-02-24)

you have to wrap a condition around the rest of the job.

or raise an exception and catch it if you can.


jlynn73 :us: (BOB member since 2009-10-27)

HI,

Please Use the following:
SCRIPT- CONDITION - DATAFLOW

Use a variable in the script and assign the value TRUE or FALSE based on your check in the script,
If check Passes $V_CHECK=‘TRUE’ otherwise assign it as FALSE.

Once that is done, use the condition object and check the value of $V_CHECK.
IF TRUE then proceed to Dataflow Else you can print a custom message like Condition not satisfied, Exit processing.

Regards,
Jay


Jay_mKumar :india: (BOB member since 2016-03-24)