Donald Johnson said: > > Allen, based on your example, if you leave your IF statement as is, and code > STEPC and STEPD with ,COND=(0,NE) then if A gets the U0111, the steps inside > the IF/ENDIF are executed. If B then abends or returns anything other than > 0, C and D are flushed. > > I think we can easiy use a combination of COND statements and IF/ENDIF, > leveraging the strengths of each where appropriate. > *don*
Nope. I just tried it, adding COND=(0,NE) to all steps. If A abends with U111 and B also abends, C and D still execute. > > //STEPA EXEC PGM=... > > // IF (STEPA.RUN=TRUE OR STEPA.ABENDCC=U0111) THEN > > //STEPB EXEC PGM=... > > //STEPC EXEC PGM=... > > //STEPD EXEC PGM=... > > // ENDIF Cheers, Allen ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html