Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Submiting a Job after successful execution of previous Job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Huzefa

New User


Joined: 05 Dec 2006
Posts: 85
Location: Bangalore

PostPosted: Wed Feb 07, 2007 8:01 pm    Post subject: Submiting a Job after successful execution of previous Job
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

Moderator Team Head


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

PostPosted: Wed Feb 07, 2007 8:25 pm    Post subject: Re: Submiting a Job after successful execution of previous J
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: 85
Location: Bangalore

PostPosted: Wed Feb 07, 2007 8:35 pm    Post subject:
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

Site Director


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

PostPosted: Wed Feb 07, 2007 9:33 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Feb 07, 2007 10:55 pm    Post subject: Re: Submiting a Job after successful execution of previous J
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts How to get previous month in SYMNAMES Suganya87 SYNCSORT 9 Fri Oct 28, 2016 1:37 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts output DDname JESMSGLG job during exe... italo_pm TSO/ISPF 16 Tue Jun 21, 2016 11:13 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us