JCL IF S

Man Page Index


Conditionally executes a command depending on the presence or absence of an active select list.

 

SYNTAX

IF {#} S command

 

SYNTAX ELEMENTS

# tests for the absence of an active select list.

command is a valid jCL command.

 

NOTES

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.

 

EXAMPLE

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