View previous topic :: View next topic
|
Author |
Message |
Huzefa
New User
Joined: 05 Dec 2006 Posts: 83 Location: Bangalore
|
|
|
|
Hi all,
I have 3 Jobs in Rexx say JOB1, JOB2 and JOB3
I submit two jobs consequtively ie JOB1 and JOB2
I have to put a wait in the REXX code stating that JOB3 should be executed only after JOB1 and JOB2 is executed successfully
How can this be implemented in Rexx |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
Huzefa
New User
Joined: 05 Dec 2006 Posts: 83 Location: Bangalore
|
|
|
|
Hi superk,
I read you previous post, but here my situation is something different...
I want to wait until the JOB1 and JOB2 are executed and then execute the JOB3.
How do I achieve that |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Talk with your scheduling people and have these scheduled with job3 being dependent on the successful completion of both job1 and job2. Job1 and job2 can be scheduled to start at the same time.
Even if you find a way to check if job1 or job2 is still running and wait for completion in rexx, you will most likely not be able to determine if either had and abend or other problem. I'd guess you do not want job3 to run unless the others complete successfully.
Another choise is to let job1 submit job2 as it successfully completes, then have job2 submit job3 as it successfully completes. Is there some business reason to run job1 and job2 at the same time? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Huzefa, in response to your follow-up, the answer is - I don't know. How you accomplish that task now would have a lot to do with how you want to do it using REXX. Personally, I'd probably add code to the jobs themselves that would give me an overall status once they've completed. Outside of that, I'd be in TSO waiting for the results of a STATUS command.
There are many other posts on this same topic within this Forum. You might want to review some of those and see what others might have done for their own needs. |
|
Back to top |
|
|
|