On Thu, Jun 09, 2005 at 10:18:10AM -0500, Chase, John wrote:
> //STEP03   EXEC PROC3,COND=(1,LT)
[...]
> //PROCn   PROC
> //PSTEP1  EXEC PGM=PROGn1,COND=(0,LT)
> //PSTEP2  EXEC PGM=PROGn2,COND=(0,LT)
> //PSTEP3  EXEC PGM=PROGn3,COND=(0,LT)
> //....
> Jobstep 3, procstep 1 completes with RC=1 or higher, and the programmer
> expects the remainder of the job to be flushed; but all remaining procsteps
> are executed.  The job finally abends S0C7 in a later procstep because a
> dataset that was intended to be populated in the first procstep is either
> empty or non-existent.
> 
> The puzzle:  Why is the remainder of PROC3 executed when its first procstep
> produces RC>0?

The ,COND=(1,LT) on the EXEC PROC3 statement overrides the COND on all of
the EXEC PGM= statements?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to