Logic to build a sequence

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
phanikumar
Participant
Posts: 60
Joined: Tue Sep 20, 2011 10:44 pm
Location: INDIA

Logic to build a sequence

Post 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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kandyshandy
Participant
Posts: 597
Joined: Fri Apr 29, 2005 6:19 am
Location: Singapore

Re: Logic to build a sequence

Post 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? ;)
Kandy
_________________
Try and Try again…You will succeed atlast!!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

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