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.

Note

You can modify the $$$CONFG member in the amihlq.CZAGENT.PARM file.

image2019-3-26_11-5-5.png

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.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*