Conditionally executes a command depending on the presence or absence of an active select list.
IF {#} S command
# tests for the absence of an active select list.
command is a valid jCL command.
IF S will execute command if there is an active select list. IF # S will execute command if there is not an active select list.
021 HSELECT SALES WITH VALUE > "1000"
022 PH
023 IF S G 100
If the SELECT command generates an active select list, control will be transferred to label 100.
JCL