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 Datastream statements. For more information, see FOR-and-IF-statements. SWITch is ignored by CZASEND.

The SWITch statement is in the $$$CONFG member. 

Important

You can modify the $$$CONFG member in the amihlq.PARM data set.

For more information about the $$$CONFG member, see Customizing-for-a-proprietary-syslog-extension

Syntax diagram for the SWITCH statement provides a visual representation of the command syntax and parameters.

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. For example, to set the RMF and Scty switches on and the Perf switch off, use the following code:

SWITCH ON(Perf RMF) OFF(Perf) ON(Scty)

SWITch uses the following parameters:

Parameter

Description

SWITch

Identifies the start of the SWITch statement

for and/or if

OFF( switch ...)

One or more software switches to be set off

ON( switch ...)

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*