IF only! Coming from VSE where this is easy and obvious trying to do this in z/OS, well, I haven't found an easy and obvious way to do it. In z/OS all conditional JCL is dependant on return codes. Pain in the ^...@*!, in my opinion. --
Frank Swarbrick Applications Architect - Mainframe Applications Development FirstBank Data Corporation Lakewood, CO USA P: 303-235-1403 F: 303-235-2075 On 6/25/2009 at 2:35 AM, in message <[email protected]>, Michael Knigge <[email protected]> wrote: > All, > > > is it possible to control the steps to be executed by a IF-Statement, i. > e. with a variable? > > Like this: > > // SET SWITCH1=YES > // SET SWITCH2=NO > //* > //* EXECUTE ONLY IF SWITCH1 IS SET TO YES > //IF SWITCH1=YES > //STEP01 EXEC PGM=IEBGENER > //... more stuff > //ENDIF > //* > //* EXECUTE ONLY IF SWITCH2 IS SET TO YES > //IF SWITCH2=YES > //STEP02 EXEC PGM=IEBGENER > //... more stuff > //ENDIF > //* > > > If I've understood the JCL docs corretly there are only some predefined > variables (like "RC") that can be checked... I wonder if there is a way... > > > Thanks.... > > Bye, > Michael > > ---------------------------------------------------------------------- > 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 >>> The information contained in this electronic communication and any document attached hereto or transmitted herewith is confidential and intended for the exclusive use of the individual or entity named above. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any examination, use, dissemination, distribution or copying of this communication or any part thereof is strictly prohibited. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy this communication. Thank you. ---------------------------------------------------------------------- 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

