Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 4650
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
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us