Previous Topic: RETURN Statements in the )PROC Section of a GLV RuleNext Topic: OPS/REXX Host Environments in the )PROC Section of a GLV Rule


Execution Considerations for GLV Rules

The processing section of a rule that responds to a GLV event executes in the address space from which the global variable event originated. Therefore, any type of logic that could possibly suspend the processing of a GLV rule should be performed by scheduling an OPS/REXX program to a CA OPS/MVS OSF TSO, TSL, or TSP server, as described in the chapter “Code and Debug AOF Rules.”

A change in the value of an OPS/REXX global variable triggers a GLV rule. However, a global variable event does not trigger a global variable rule under these conditions:

If a global variable update occurs in the processing section of a rule, the rule can trigger itself. A global variable rule triggering itself is not true recursion. The AOF maintains such global variable events in a FIFO queue. The AOF extracts the events from the queue and triggers other rules when the rule that caused the recursion has finished executing. The GLVPENDINGMAX parameter determines size of the FIFO queue; the default queue size is 100.

To prevent infinite recursion, specify the GLVCHAINMAX parameter to limit the number of global variable events that can occur from in the original rule; the default limit is 1000 events.

Note: For more information about the GLVPENDINGMAX and GLVCHAINMAX parameters, see the Parameter Reference.