Allen, I apologize...you are correct. In my test, I had the COND steps
flush, but that was because I had a nonzero CC on another step. I have tried
a few different alternatives, and none of them gave the result we want. My
testing was not exhaustive, nor am I an expert (I don't play one on TV,
either), but I think the two-step approach may be the simplest, as others
have suggested.

I will chew on this further to see if I can jog any other ideas loose.
*don*

On Tue, Jun 7, 2011 at 5:21 PM, Gainsford, Allen <[email protected]>wrote:

> 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 [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>

----------------------------------------------------------------------
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