How can the )INIT section help when same rule is used in multiple LPARs?
Release : 14.0
Component : OPS/MVS
OPS provides a method to selectively enable a rule by including code in the )INIT section. If the logic of the )INIT section results in a RETURN REJECT statement the rule is not allowed to be enabled and you will see that message ENABLE FAILED. See the "AOF RETURN STATEMENT" section of the Using Guide, under the "AVAILABLE AOF RULE TOOLS chapter, which discusses the usage of the RETURN statement in the various sections of a rule:
https://techdocs.broadcom.com/us/en/ca-mainframe-software/automation/ca-ops-mvs-event-management-and-automation/14-0/using/using-automated-operations-facility-aof-rules/available-aof-rule-tools/aof-return-statement.html
This method is very used when rulesets are shared among several systems and the user wants to enable the rule only on some of the systems. See the sample rule CCLXRULS(CHKSYS) that uses this method.
SHUTSYS uses the same approach to avoid the rule to be enabled when a shutdown is not occurring.
For R14.0 refer to lin
https://techdocs.broadcom.com/us/en/ca-mainframe-software/automation/ca-ops-mvs-event-management-and-automation/14-0/using/using-automated-operations-facility-aof-rules/available-aof-rule-tools/aof-return-statement.html