Understanding abend codes

Under Language Environment, abnormal terminations generate abend codes. There are two types of abend codes: 1) user (Language Environment and user-specified) abends and 2) system abends. User abends follow the format of Udddd, where dddd is a decimal user abend code. System abends follow the format of Shhh, where hhh is a hexadecimal abend code. Language Environment abend codes are usually in the range of 4000 to 4095. However, some subsystem abend codes can also fall in this range. User-specified abends use the range of 0 to 3999. The following figure shows examples of abend codes.
User (Language Environment) abend code:U4041
User-specified abend code:U0005
System abend code:S80A

The Language Environment callable service CEE3ABD terminates your application with an abend. You can set the clean-up parameter value to determine how the abend is processed and how Language Environment handles the raised condition. For more information about CEE3ABD and clean-up, see z/OS Language Environment Programming Reference.

You can specify the ABTERMENC runtime option to determine what action is taken when an unhandled condition of severity 2 or greater occurs. For more information on ABTERMENC, see Establishing enclave termination behavior for unhandled conditions, as well as z/OS Language Environment Programming Reference.