Termination failures

If Language Environment cannot successfully terminate the enclave, it abends with completion code 4094. For example, this can occur when the program has overwritten Language Environment storage, causing Language Environment control blocks to become invalid. The reason code associated with the ABEND 4094 indicates the cause of the failure. The reason codes are described in Language Environment abend codes in z/OS Language Environment Runtime Messages.

Note: The reason and return codes are passed to the assembler user exit during termination processing. The exit can examine these values and change them. The return code and reason code returned by the user exit are used by Language Environment as the values returned in R15 and R0.