Page 1 of 1

Logic to build a sequence

Posted: Tue Mar 06, 2012 11:21 pm
by phanikumar
Hi,

I have a scenario where I have to run a job through sequence and the output of the job could be -1 0r 1.I need to abort my job if my job returns a value -1 and run it successfully if it returns 1.

Can some one provide some suggestions in building up a sequence as per above scenario.

Regards

Kumar

Posted: Wed Mar 07, 2012 12:04 am
by ray.wurlod
Let's start with the mechanism by which a job can "return" anything. How do you propose to have this happen?

There are several techniques, and the one you use will affect how that value might be detected in a sequence.

Over to you.

Re: Logic to build a sequence

Posted: Wed Mar 07, 2012 3:01 am
by kandyshandy
phanikumar wrote:I have a scenario where I have to run a job through sequence and the output of the job could be -1 0r 1.I need to abort my job if my job returns a value -1 and run it successfully if it returns 1.
What is your job doing after outputting -1 or 1? If -1 or 1 is the output of your job, how can you abort that job when it is already finished? ;)

Posted: Wed Mar 07, 2012 8:03 am
by chulett
As noted, it depends on how it is doing this "outputting"... you could do something "After Job" to force a conditional abort. Anything after that would be too late, so I don't really see how a Sequence plays into this unless perhaps rather than aborting you needed to send out an alert.