Page 1 of 1
How to abort a job from within a transformer stage
Posted: Fri Nov 20, 2009 1:32 am
by zulfi123786
Is there any function to abort the job from within a transformer stage, if not then how can this be best achieved?
Posted: Fri Nov 20, 2009 2:25 am
by satish.raghavan
Open the Transformer there you have transformer stage constraints.
Give the constraints and u have a coulmn Abort after where u have to specify the job to be aborted after 50 lines.
Eg. assume a reject condition
ABORT AFTER 50 LINES assume.
Posted: Fri Nov 20, 2009 2:30 am
by satish.raghavan
You can also use a BASIC Transformer where u can give the abort condition in stage variables .
U have to declare this condition in stage variable accordingly in a basic transformer
If <<CONDITION><Eg. @INROWNUM >50>> Then UtilityAbortToLog('Job Aborted') Else <CONDITION>
Posted: Fri Nov 20, 2009 4:17 am
by satish.raghavan
Sorry for using U. i meant You. Please change accordingly.I was Fast typing mistake.
Sorry
Posted: Fri Nov 20, 2009 4:30 am
by ds_ashish
Hi,
Do you have any specific condition to abort your job?
If yes, then please explain it.
Posted: Fri Nov 20, 2009 7:46 am
by chulett
satish.raghavan wrote:Sorry for using U. i meant You. Please change accordingly.I was Fast typing mistake.
Just for the record, you
can go back and edit your own posts after the fact. To paraphrase Apple - there's a button for that.
![Wink :wink:](./images/smilies/icon_wink.gif)