Why bother checking periodically if the job has completed when you can 
simply add a step at the end of the first job to submit the next job.

//LASTSTEP EXEC PGM=IKJEFT01 
//SYSTSPRT DD SYSOUT=* 
//SYSTSIN  DD * 
  SUB 'MY.JOB.PDS(my next job)'
//*
 
Kolusu

IBM Mainframe Discussion List <[email protected]> wrote on 
04/30/2013 09:33:19 AM:

> From: Anthony Rudd <[email protected]>
> To: [email protected], 
> Date: 04/30/2013 09:39 AM
> Subject: Check whether job still running
> Sent by: IBM Mainframe Discussion List <[email protected]>
> 
> I  am sorry that I was too imprecise.
> I need a programmed solution, prefererably called from REXX (IRXJCL).
> 
> The situation:
> I have submitted as batch job (possibly long running).
> In a separate batch job, I need to wait until the first job has 
completed.
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
> 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to