IF
Use the IF statement to specify the expected return code of a previous operation that will allow execution of the following operation.
Syntax
Parameters
- RC=nn
- nn specifies a return code number.
- LIST={YES|NO|ALL}
- Specifies whether the skipped statements are to be listed in the SYSPRINT data set.
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.