What it means
With the ABTERMENC(ABEND) runtime option, Language Environment ends the enclave with an abend when an unhandled condition of severity 2 or greater occurs. For a software-raised condition, the abend is a user 4038 in a non-CICS environment (transaction abend 4038 in CICS) with reason code 1 in non-CICS.
Other kinds of unhandled condition use different codes: an original abend keeps its own code, and a program interrupt uses its own abend and reason codes.
Typical causes
- A software-raised condition of severity 2 or greater was not handled.
- ABTERMENC(ABEND) was specified as the runtime option.
- The assembler user exit did not alter the CEEAUE_ABND flag setting.
How to fix it
- Check whether ABTERMENC(ABEND) is in effect, since 4038 is generated only for that setting.
- Find which software-raised condition of severity 2 or greater was left unhandled and handle it in the program.
- In CICS, remember that only the abend code is returned and no reason code is available.