Register Activation Group Exit Procedure (CEE4RAGE) API


  Required Parameter:


  Omissible Parameter:


  Service Program Name: QLEAWI

  Default Public Authority: *USE

  Threadsafe: Yes

The Register Activation Group Exit Procedure (CEE4RAGE) API is used to register procedures that are called when an activation group ends. Activation group exit procedures, registered by CEE4RAGE, are called after HLL user exit procedures, but before any system level activation group resource clean up takes place. The procedures are called in the reverse order of their registration. If a procedure fails, subsequent procedures will not be called.

There is no practical limit to the number of procedures that can be registered. If the same procedure is registered multiple times, it is called multiple times.

Note: The CEE4RAGE API and the Register Activation Group Exit Procedure (CEE4RAGE2) API perform the same function. The CEE4RAGE API takes as its first parameter a procedure that takes a 32 bit activation group mark as a parameter. The CEE4RAGE2 API takes as its first parameter a procedure that takes a 64 bit activation group mark as a parameter.


Authorities and Locks

None.


Required Parameter

procedure (input)
An entry variable or constant for the procedure that is to be called at activation group termination.

Omissible Parameter

fc (output)
A 12-byte feedback code.

Feedback Codes and Conditions


Usage Notes


Interface to the Activation Group Exit Procedure

An activation group exit procedure is called when the activation group is ended. The procedure is coded as activation_group_exit with the following parameters.



  Required Parameter Group:


Authorities and Locks

None.


Required Parameter Group

ag_mark (input)
The activation group mark that uniquely identifies the activation group within the job.
 
reason (input)
The reason for the activation group being ended. See Common Reason Codes for Ending Activation Groups and Call Stack Entries for a description of the reason codes.
 
result_code (I/O)
The value passed as input is the action to be taken as specified by a previous exit procedure. The value passed to the first exit procedure is 0. The output value can specify an action to be taken. If the result code does not match any of the following actions, the output value is ignored and the previous action remains unchanged.
No action
Recover
Failure

Note: The application error message CEE9901 is sent after the activation group resources of the system are taken down and the activation group has ended.

 
user_rc (I/O)
The value passed as input is the user_rc returned as output from the previous exit procedure. The value passed to the first exit procedure is 0.

Common Reason Codes for Ending Activation Groups and Call Stack Entries.



API introduced: V2R3

[ Back to top | ILE CEE APIs | APIs by category ]