Register a User-Written Condition Handler (CEEHDLR) API


  Required Parameter Group:


  Omissible Parameter:



  Service Program Name: QLEAWI

  Default Public Authority: *USE

  Threadsafe:

The Register a User-Written Condition Handler (CEEHDLR) API registers a user-written condition handler for the current call stack entry.

Required Parameter Group

procedure (input)
An entry variable or constant for the procedure that is to be called to process the conditions.

token (input)
A pointer passed to the user-written condition handler at the time the procedure is called.

Omissible Parameter

fc (output)
A 12-byte feedback code.

Feedback Codes and Conditions


Usage Notes

ILE Condition Handler Interface

Following is a description of the interface that the system uses to communicate with ILE condition handlers.


  Required Parameter Group:


Authorities and Locks

None.


Required Parameter Group

C_CTOK (input)
Identifies the current condition being processed.

token (input)
The token that was passed to the system with the call to CEEHDLR that registered this condition handler.

result_code (output)
This field contains the instructions from the condition handler to the system regarding the actions that the system should take.

ILE condition handlers get control for all *ESCAPE, *STATUS, *NOTIFY, and function check messages. Not all result code actions are valid for all types of messages.

If the message is handled by the ILE condition handler, the result-code action is not performed.

If a result code is returned that is not valid, the following message occurs:

Valid result codes are:

Resume
This result code can be used for all exception types.
Percolate
These result codes can be used for all exception types.
Promote
Only *ESCAPE and *STATUS messages may be promoted.

Note: It is not valid to promote a condition without returning a new condition token. If the original condition is returned in new_condition, the following message occurs:


new_condition (output)
The condition token representing the promoted condition. This field is used only for result_code values of 30, 31, and 32 denoting promote or fix-up and resume.


API introduced: V2R3

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