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
Logic to build a sequence
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 60
- Joined: Tue Sep 20, 2011 10:44 pm
- Location: INDIA
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
There are several techniques, and the one you use will affect how that value might be detected in a sequence.
Over to you.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 597
- Joined: Fri Apr 29, 2005 6:19 am
- Location: Singapore
Re: Logic to build a sequence
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?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.
![Wink ;)](./images/smilies/icon_wink.gif)
Kandy
_________________
Try and Try again…You will succeed atlast!!
_________________
Try and Try again…You will succeed atlast!!
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.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers