how to abort a parallel job

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
Gius
Participant
Posts: 29
Joined: Mon Mar 09, 2015 2:10 am

how to abort a parallel job

Post by Gius »

Hello,
We need to create a parallel job that when a query retrieves rows, the job aborts.

Something like a source (with an inside query) then if the query retrieves some records, the job aborts.

thank you -
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Follow your query with a Transformer stage. Open up its output link constraint properties and set the "Abort After Rows" value.
Choose a job you love, and you will never have to work a day in your life. - Confucius
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Another possibility, again from a transformer, would be to leverage the DSLogFatal function based on your triggering condition. Bonus is you can also log the reason why you are aborting it. :wink:

Or is that not possible from a Parallel transformer? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

@Craig It's not possible from a parallel Transformer, but it is possible from a BASIC Transformer stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

But of course! Stick with the original suggestion.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply