Previous Topic: )CMD—Event Specifier of CMD RulesNext Topic: JES2 Command Guidelines


z/OS Command Guidelines

Specify the full command verb or a mask of the command verb when attempting to trigger on z/OS commands.

Example

This command rule triggers whenever a z/OS Display command is issued.

)CMD DISPLAY rather than )CMD D

This command executes on z/OS modify commands.

)CMD MODIFY rather than )CMD F

Specify the full z/OS command verb which is required in the event definition section of the rule. A command rule recognizes a command event when an operator issues a short form (alias) of the command.

Logic can be implemented into the )PROC section of the rule to interrogate the CMD.TEXT event variable to see the exact command that was entered.

Z/OS can reissue some commands internally when they do not originate from the CONSOLE address space. That is, if a program issues the commands rather than a z/OS console.

z/OS reissues such commands so that the processing occurs in the CONSOLE address space, thus causing a CMD rule to execute possibly twice. z/OS reissues DISPLAY ACTIVE commands and any other command that creates paged-frame display output on a z/OS console.