Aborting the job in transformer stage

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
Luciana
Participant
Posts: 60
Joined: Fri Jun 10, 2005 7:22 am
Location: Brasil

Aborting the job in transformer stage

Post 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
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post 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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply