Page 1 of 1

Custom - (Conditional) -- How do I use this?

Posted: Mon Apr 04, 2011 1:21 pm
by Jboyd
I was wondering how to use the Custom - (Conditional) in a sequencer.
I am pretty new to DataStage and need my job to fail if there is a null found in out CurrentDate column.
Anyone know how I handle this requirement?

Thanks!

Posted: Mon Apr 04, 2011 1:29 pm
by chulett
Those trigger expressions are used to check for conditions after a job completes, for example to see if it aborted. And as one might expect, the 'custom' one lets you write your own condition when none of the standard ones are appropriate.

To force a job to about based on a data condition, you'll need to do that inside the job itself. One way is to conditionally call the DSLogFatal() function but i'm not certain that is valid in a PX job. Another is to setup a reject link from a Transformer with a constraint that directs your null rows down it and then set the 'Abort after' row count to 1.