It sounds like this is overly complex. The more complex it is the more horrible it is to support. Being an Operator ,
then a Sysprog and now a Developer I speak from some experience. I mean this is up to uo Allen, but personally I wouldnt make it that complex. Been there and done that and definitelty have the t-shirt Scott J Ford ________________________________ From: Mike Schwab <mike.a.sch...@gmail.com> To: IBM-MAIN@bama.ua.edu Sent: Mon, June 6, 2011 10:19:16 PM Subject: Re: JCL: IF and ABEND On Mon, Jun 6, 2011 at 8:30 PM, Gainsford, Allen <allen.gainsf...@hp.com> wrote: <deleted> > then, if STEPA abends with U111, STEPB will execute. But if STEPB also > abends, >then STEPC and STEPD will still execute, even though they're not the subject >of >the IF. I want a way to force STEPC and STEPD to be flushed if STEPB abends. > > The only way I've found so far is to surround STEPC and STEPD with their own > IF >statements, so that STEPC only runs if STEPB explicitly ran and did not abend, >and STEPD only runs if STEPC explicitly ran and did not abend. This is >long-winded, tedious, and over-complex. But so far I haven't been able to >find >another way. > > Regards, > Allen 3 different sets of conditions, 3 different IFs. If the desired combinations are just right, nesting IFs might do it, but not with your desired results. -- Mike A Schwab, Springfield IL USA Where do Forest Rangers go to get away from it all? ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- 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