dsjob run sequential execution

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
ds_is_fun
Premium Member
Premium Member
Posts: 194
Joined: Fri Jan 07, 2005 12:00 pm

dsjob run sequential execution

Post by ds_is_fun »

I have two job sequences created. I will need to run the second sequence based on the return value of the first from command line.
How do I kick of the second job from the script based on the return value of the first kick off.
Thanks
gateleys
Premium Member
Premium Member
Posts: 992
Joined: Mon Aug 08, 2005 5:08 pm
Location: USA

Re: dsjob run sequential execution

Post by gateleys »

Write a shell script which checks for the return value from the first sequence job. Then, if the right value is got, then fire off your dsjob command from within the script.

Also, if your second sequence is always dependent on the return value of the first sequence, you could have combined them into the same sequence, with the trigger set accordingly.
gateleys
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I'd prefer to use a master sequence rather than a script to do this.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply