SWITCH statement
A SWITch statement sets one or more named software switches on or off. (Software switches are referenced by the IF parameter of certain BMC AMI Defender statements; see FOR-and-IF-statements. SWITch is ignored by CZASEND.
If a switch has not been previously defined, it is defined by the SWITch statement. Switch names might be of any length and are not case-sensitive: MYSWITCH, myswitch and MySwitch are equivalent. You might define any number of switches.
The operands of SWITch are processed cumulatively from left to right. If you were to code:
SWITCH ON(Perf RMF) OFF(Perf) ON(Scty)
then the effect would be to set the RMF and Scty switches on and the Perf switch off.
Parameter | Description |
---|---|
SWITch | Must be coded exactly as shown. |
For and/or if | |
OFF(Switch ...) | Specifies one or more software switches to be set off. |
ON(Switch ...) | Specifies one or more software switches to be set on. |
Related topic