And how do you specify the particular abend code on a COND statement? On Tue, Jun 7, 2011 at 6:51 AM, Schwarz, Barry A <[email protected]> wrote: > Have you considered splitting it into two jobs. The first job would have > everything up to the "particular" step followed by a step with COND=EVEN to > submit the second job. The second job would not need any special JCL since > any of its steps that abend would cause the remaining steps to flush. > > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf > Of Gainsford, Allen > Sent: Monday, June 06, 2011 3:39 PM > To: [email protected] > Subject: Re: JCL: IF and ABEND > >> Scott Ford said: >> >> What about this: >> //COND2 EXEC PGM=TCOND,PARM=11 >> //A >> Allen: >> >> What about this: >> //COND2 EXEC PGM=SETCOND,PARM=U111 >> //AA SET ABENDCC=U0111 >> // IF (COND2.RUN=TRUE OR COND2.&ABENDCC=U0111) THEN >> >> Scott J Ford > > I think you've misunderstood. My problem is not with creating a return code; > that's very easy. (As I said, we have a trivial utility that does it just > fine.) > > My problem is how to use either IF statements, or CONDs (IF statements > preferred), to allow a job to continue if a particular step abends, but to > flush remaining steps if any further step abends. > > Regards, > 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 >
-- 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 [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

