Page 1 of 1

Aborting the job in transformer stage

Posted: Mon Jun 04, 2007 7:37 am
by Luciana
Hi

I need abort my parallel job in Transformer Stage and send message to log.
Anybody could help me?

SF ---> Transformer ---> SF

In Transformer Stage I have stage variable varFlag = if in.field = -1 then 1 else 0
If varFlag = 1, I have to abort the job

Regards,
Luciana

Posted: Mon Jun 04, 2007 8:03 am
by DSguru2B
Have a second link going from your transformer to any stage, say a peek stage, with the constraint set to varFlag = 1. In the properties for this link, set Abort after 1 row. This way when your stage variable condition is 1, the record will go down the second link and it will raise an abort.