Viewer Commands
Commands are pre-configured operator inputs that are attached to a message via an RDL2 rule. When an operator right-clicks on a message in the viewer, the list of commands is presented as an 'Actions' sub-menu on the context menu. Each message may have an arbitrary number of commands. attached to it.
Each message has an optional COMMANDS array that contains the command information. Each element of the COMMANDS array is a map that contains a FUNCTION string and a DESCRIPTION string. The FUNCTION string is the text that is sent back to the session as if it was typed in the operator input field. The DESCRIPTION string is the text that appears on the actions sub-menu.
The following example shows how to give an operator predefined choices for the $HASP483 message:
message.COMMANDS[0].DESCRIPTION = 'Terminate JES2'
message.COMMANDS[0].FUNCTION = 'R,' & message.REPLYNUM & ',N'
message.COMMANDS[1].DESCRIPTION = 'Rebuild job queue'
message.COMMANDS[1].FUNCTION = 'R,' & message.REPLYNUM & ',Y'