Registering user-written condition handlers using USRHDLR

Use the USRHDLR runtime option to register a user-written condition handler to run at one of the following times (or both):
Read syntax diagramSkip visual syntax diagram
Syntax

   .-NOUsrhdlr-.                                     
>>-+-USrhdlr---+--(--+--------+--+------------+--)-------------><
                     '-lmname-'  '-,--lmname2-'      

NOUsrhdlr
Specifies that no user-written condition handler is registered.
USrhdlr
Specifies that a user-written condition handler is registered.
lmname
The entry point name or alias name of a load module that contains the user-written condition handler to be registered at stack frame 0.
lmname2
The entry point name or alias name of a load module that contains the user-written condition handler to be registered to get control after the enablement phase and before any other condition handler.

The condition handlers registered by the USRHDLR runtime option can return any of the result codes allowed for a condition handler registered with the CEEHDLR callable service.

For more information about using the USRHDLR runtime option, see z/OS Language Environment Programming Reference.