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


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.

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
Severity: 00

The API completed successfully
CEE0256
Severity: 10

Procedure already registered, registered again
CEE0257
Severity: 30

The procedure provided for &1 is not valid
CEE3103
Severity: 30

Cannot allocate storage in &1
CEE9902
Severity: 30

Unexpected user error occurred in &1

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

Required Parameter

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


Top | Activation Group and Control Flow APIs | Condition Management APIs
Date and Time APIs | Math APIs | Message Services APIs | Program or Procedure Call APIs
Storage Management APIs | ILE CEE APIs | APIs by category

[Information Center Home Page | Feedback ] [Legal | AS/400 Glossary]