Abort Sequence But Complete All Jobs First

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
dec1177
Premium Member
Premium Member
Posts: 22
Joined: Mon Aug 06, 2007 2:26 pm

Abort Sequence But Complete All Jobs First

Post by dec1177 »

I am looking to allow a sequence I have built to finish running all remaining jobs in its sequence, but abort upon completion if at any point in the sequence one of its jobs has failed.

I found this thread which very closely resembles what I am looking to achieve:

http://dsxchange.com/viewtopic.php?t=12 ... f65b1d1f67

This user was satisfied by removing his terminator activity, which allowed all subsequent jobs to complete, but his sequence still finished successfully and he was fine with that. I am hoping to achieve this same result but have the sequence log an Aborted status.

Any help is much appreciated.

Thanks.
I don't know signatures...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ah, yes, that post. Seems like you'll need to set some kind of indicator, something you can check on later, to see if any jobs had problems and the Sequence itself should be aborted as a result. And then check on that 'indicator' after job and if found or set, issue the abort there.

Perhaps that's as simple as a semaphore file.
-craig

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