The DEFCMD statement defines an operator command used by the rules language. During rule and procedure processing, the SET and ISSUE action statements can use the OPERCMD parameter to issue the operator command.
The DEFCMD statement can build the operator command with the use of literal strings and symbolic substitution. The text field must start with a single (‘) or double quote (“), and terminate with the same type of quote. Both character and numeric symbolic fields can be placed in the command text. For more information, examine Symbolic fields.
Operator commands cannot be continued onto the next card. Add a plus (+) sign after the end of the quoted string, and start another quoted text field on the next control card.
Command length after substitution is limited to 125 bytes. For more information, examine Continuation.
DEFCMD name ” text ” CN( num )
FILTERRULE ( rulename )
name
Function: This is a required parameter. The name parameter is used by
the OPERCMD parameter on the DEFRULE statements. The name defines the link between the OPERCMD parameter and the DEFCMD statement.
The DEFCMD statement can use a special statement name to establish parameter defaults. When $DEFAULT is specified, the rule compiler uses the specified parameters to modify the parameter defaults for later DEFCMD statements. For more information, examine Using $DEFAULT on Statement Definitions.
Default: None
Format: Specify a name 1 to 20 characters long.
”text”
Function: This is a required parameter. The text parameter is used to
define the operator command. This parameter can use both literal strings and symbolic substitution to build a command. The text field must start with a single (‘) or double quote (“), and terminate with the same type of quote. Text that requires the internal use of a quote should use the opposite type for the text delimiters.
Commands cannot be continued onto the next card. Add a plus (+) sign after the end of the terminating quote, and start another quoted text field on the next control card. Record length after substitution is limited to 125 bytes.
Default: None
Format: “text” or ‘text’
CN( num )
Function: This is a required parameter. The CN parameter must be used to set the console identifier to be associated with the operator command.
Default: None
Format: Specify a valid console number
FILTERRULE ( rulename )
Function: This is an optional parameter. The FILTERRULE keyword can
be used to determine whether the current statement is honored by the rule processor. If the rule member requested by FILTERRULE sets the symbolic field RULE_SKIP = YES, then the current rule statement will be skipped. For more information, examine Filter Rules for Rule Statements.
Default: None
Format: Specify the name of a rule member found in the SCC rule library:
DTS.R71.RULELIB.