I want to have a PROC //MYPROC PROC PRM1=,PRM2= //STEP1 EXEC PGM= etc. // IF (STEP1.RC = 4) THEN //STEP2 EXEC PGM= etc. // ENDIF
And then in a job execute the PROC several times: //X EXEC MYPROC,PRM1=A,PRM2=B //Y EXEC MYPROC,PRM1=C,PRM2=D Question: Will the IF in the proc test the RC for the STEP1 in that execution of the proc? Or some other execution of the PROC, perhaps the first? Is there a way to make it test "its own" STEP1.RC? Something kind of like (*.STEP1.RC = 4) ? I don't see any examples in the JCL manual of IF statements inside a PROC. Thanks, Charles ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN