Use the IF statement to specify the expected return code of a previous operation that will allow execution of the following operation.


Read syntax diagramSkip visual syntax diagramlabelIFRC=‚ÄČnnLIST=YESNOALL


nn specifies a return code number.
Specifies whether the skipped statements are to be listed in the SYSPRINT data set.
When this parameter is omitted, the default from the EXEC PARM field applies.

Usage notes

The specified return code number must be one of:
  • 0
  • 4

When condition is true, all the following control statements will be executed until the next ELSE or ENDIF statement.

When LIST= is explicitly specified it becomes the default setting for the following IF|ELSE statements.