

Coding Each AOF Rule Type › Command Rules › RETURN Statements in the )PROC Section of a CMD Rule › Other RETURN Statement Considerations
Other RETURN Statement Considerations
In a command rule, the return value can affect command processing as follows:
- If multiple rules respond to a single command event, the AOF uses the highest-precedence return value; the order of precedence is:
- REJECT (highest precedence)
- ACCEPT
- NOACTION (lowest precedence)
- To effectively intercept a command before any other subsystem processes it, perform the following steps:
- Set the SSICMD parameter to YES.
- Within the CMD rule logic, set the cmd.text environmental variable to null (cmd.text='') before exiting the rule with a RETURN 'ACCEPT.' See the AOF rule sample member JES2$TJ for an example of intercepting and processing a JES2 command.
Other types of commands (such as JES, DB2, NetView, BDT) are not affected by the RETURN statement. In these cases, you must modify CMD.TEXT to prevent these subsystems from processing the command.
Copyright © 2011 CA.
All rights reserved.
 
|
|