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


Execution Considerations for EOJ Rules

The processing section of a rule that responds to an EOJ event executes in the address space of the job or task that is ending. Therefore, schedule an OPS/REXX program to a CA OPS/MVS OSF TSO, TSL, or TSP serve to perform any type of logic that could possibly suspend the processing of an EOJ rule.

The active JSCB in the ending address space is the region control task, or the initiator. This causes the ACCOUNT, EXECPGM, and MODULE operands of OPSINFO to return the values for the RCT or initiator program, rather than the application program that is ending.

Since SMF may generate more than one type 30 record for reach EOJ event, only the first record containing all the job data that only occurs once is used to generate the EOJ event. The additional records containing repeatable sections such as EXCP counts for every data set are not visible to the EOJ rules.

More information:

Code and Debug AOF Rules