Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Switch-status condition

Function

The switch-status condition tests the setting of an implementor-defined user or task switch. The implementor-name and the ON or OFF value associated with the condition must appear in the SPECIAL-NAMES paragraph of the Environment Division.

Format


condition-name


Syntax rules

  1. The result of the test is true if the switch is set to the position corresponding to condition-name.

  2. The status of a switch can be changed by means of a format 3 SET statement (see “Format 3” in section "SET statement").