Allows conditional inclusion of pseudo-JCL statements. When using
the IF statement, consider the following
limitations:
- Nesting is not supported.
- The IF cards are processed statically before the steps are executed.
- Only strings can be compared.
Syntax
Parameters
- label
- Is ignored, but must be present.
- op1, op2
- Variable names or strings.
- code
- One of the following values:
- pseudo-JCL
- One or more pseudo-JCL statements (except IF statements) to be
executed if the stated conditions are met.
Example: //SYSLIB DD DISP=SHR,DSN=&COBLIB
//X IF &SYSTEM..EQ.IMSVS
// DD DISP=SHR,DSN=&RESLIB
//X ENDIF