IF statement

Allows conditional inclusion of pseudo-JCL statements. When using the IF statement, consider the following limitations:

Syntax

Pseudo-JCL IF,  ELSE syntax

Parameters

label
Is ignored, but must be present.
op1, op2
Variable names or strings.
code
One of the following values:
  • EQ
  • NE
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

Feedback