Required Parameter:
Omissible Parameter:
|
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: This API cannot be called from code running in the default activation group.
CEE0000 Severity: 00 | The API completed successfully |
CEE0257 Severity: 30 | The procedure provided for &1 is not valid |
CEE3101 Severity: 30 | &1 cannot be called in the default activation group |
CEE3103 Severity: 30 | Cannot allocate storage in &1 |
CEE3111 Severity: 30 | &1 cannot be called at this time |
CEE9902 Severity: 30 | Unexpected user error occurred in &1 |
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:
|
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.
Table 1. Common Reason Codes for Ending Activation Groups and Call Stack Entries.
| Bit | Description |
|---|---|
| Bits 0 | Reserved |
| Bits 1 | Call stack entry is canceled because an exception message was sent. |
| Bits 2-15 | Reserved |
| Bit 16 | 0 - normal end 1 - abnormal end |
| Bit 17 | Activation Group is ending. |
| Bit 18 | Initiated by the Reclaim Activation Group (RCLACTGRP) command. |
| Bit 19 | Initiated as a result of the job ending. |
| Bit 20 | Initiated by an exit verb, for example exit() in C, or the CEETREC API. |
| Bit 21 | Initiated by an unhandled function check. |
| Bit 22 | Call stack entry canceled because of an out-of-scope jump, for example longjmp() in C. |
| Bits 23-31 | Reserved (0) |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |