Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

JCL IF S

Description 

The command conditionally executes a command depending on the presence or absence of an active select list. It takes the general form: 

IF {#} S command

where: 

  • # tests for the absence of an active select list.
  • command is a valid jCL  command.


Note: 

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.


Was this article helpful?