Register Call Stack Entry Termination User Exit Procedure (CEERTX) API


  Required Parameter:

1 procedure Input RTX_ENTRY

  Omissible Parameter:

2 token Input POINTER
3 fc Output FEEDBACK

  Service Program Name: QLEAWI

  Default Public Authority: *USE

  Threadsafe: Yes

The Register Call Stack Entry Termination User Exit Procedure (CEERTX) API registers a user-defined procedure that runs when the call stack entry for which it is registered is ended by anything other than a return to the caller.

Authorities and Locks

None.


Required Parameter

procedure (input)
An entry variable or constant for the procedure that is called if the call stack entry is abnormally ended.

Omissible Parameter

token (input)
A pointer that is passed to procedure. If token is omitted, a null pointer is passed to procedure when procedure is called.

fc (output)
A 12-byte feedback code.

Feedback Codes and Conditions

CEE0000 The API completed successfully
Severity: 00  
CEE0256 Procedure already registered, registered again
Severity: 10  
CEE0257 The procedure provided for &1 is not valid
Severity: 30  
CEE3103 Cannot allocate storage in &1
Severity: 30  
CEE9902 Unexpected user error occurred in &1
Severity: 30  

Usage Notes


Interface to the Call Stack Entry Termination User Exit Procedure

The following is the interface to the call stack entry termination user exit procedure registered by the CEERTX API. The procedure is coded as termination_procedure with the following parameter.



  Required Parameter:

1 token Input POINTER

Authorities and Locks

None.


Required Parameter

token (input)
The user-supplied pointer passed on the call to CEERTX that registered the call stack entry termination user exit procedure.


API introduced: V2R3

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