IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Submiting a Job after successful execution of previous Job


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Huzefa

New User


Joined: 05 Dec 2006
Posts: 83
Location: Bangalore

PostPosted: Wed Feb 07, 2007 8:01 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Feb 07, 2007 8:25 pm
Reply with quote

See this previous topic.
Back to top
View user's profile Send private message
Huzefa

New User


Joined: 05 Dec 2006
Posts: 83
Location: Bangalore

PostPosted: Wed Feb 07, 2007 8:35 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Feb 07, 2007 9:33 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Feb 07, 2007 10:55 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Capturing Job Execution Information All Other Mainframe Topics 3
No new posts How to extract the data for current y... DFSORT/ICETOOL 8
No new posts To get previous month from current ti... SYNCSORT 7
No new posts Parallel Sysplex - subprogram execution CICS 7
No new posts Write a current record plus previous ... DFSORT/ICETOOL 4
Search our Forums:

Back to Top