as has been mentioned, you can sort of have conditional steps run by testing condition codes and you can do this by passing the keywords like 'compile' or 'cics' thru a program which returns a condition code, which you can test with something like IF (TESTCOMP.RC) where TESTCOMP is the step that tests the condition code. If you like, I can send you my program and you can modify it to test additional keywords. It already contains some keywords for CICS startup types like COLD and WARM. The program also comes in handy since it can return the time of day, day of month, and day of week in the condition code so that certain steps can be run only at certain times on certain days.
-----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Donald Johnson Sent: Thursday, June 25, 2009 12:16 PM To: [email protected] Subject: Re: IF-Statement in JCL That's correct. The IF statement will control execution, so if you wanted a CICS compile separate from a batch compile, you would need both full step executions (this is where INCLUDEs come in handy) that could be conditionally executed. Sorry to relay the bad news! Don On Thu, Jun 25, 2009 at 11:35 AM, Frank Swarbrick < [email protected]> wrote: > > Can I assume that there is no way to have "conditional" DD statements. > Something like: > > // IF COMPILE=CICS > //SYSLIB DD DISP=SHR,DSN=CICS.SDFHCOB > // ENDIF > > ---------------------------------------------------------------------- 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

