Return and reason codes

When control returns from the console definition removal service (module IEAVG730), the return code appears in register 15, and the reason code in register 0:

Hexadecimal Return Code Hexadecimal Reason Code Meaning and Action
00 00 Successful processing.
04 00 Caller is not authorized. Ensure that caller is in supervisor state.
04 04 Caller is not authorized. Ensure that caller is in key zero.
04 08 Caller is in cross memory mode. Ensure that PASN = HASN = SASN.
04 14 Caller is holding locks. Ensure that caller is not holding any locks.
04 18 Caller is not in task mode. Ensure that caller is running in task mode.
08 00 Recovery cannot be established. Report error to the appropriate IBM® support personnel.
08 04 Retry from an abend. Report error to the appropriate IBM support personnel.
08 08 This reason code is for IBM internal diagnostic purposes only. Record it and supply it to the appropriate IBM support personnel.
08 0C This reason code is for IBM internal diagnostic purposes only. Record it and supply it to the appropriate IBM support personnel.
08 10 Secondary recovery cannot be established. Report error to the appropriate IBM support personnel.
08 14 Retry from an abend for the secondary recovery routine. Report error to the appropriate IBM support personnel.
08 18 This reason code is for IBM internal diagnostic purposes only. Record it and supply it to the appropriate IBM support personnel.
08 1C This reason code is for IBM internal diagnostic purposes only. Record it and supply it to the appropriate IBM support personnel.
08 20 This reason code is for IBM internal diagnostic purposes only. Record it and supply it to the appropriate IBM support personnel.
08 24 This reason code is for IBM internal diagnostic purposes only. Record it and supply it to the appropriate IBM support personnel.
08 28 This reason code is for IBM internal diagnostic purposes only. Record it and supply it to the appropriate IBM support personnel.
08 2C This reason code is for IBM internal diagnostic purposes only. Record it and supply it to the appropriate IBM support personnel.
08 30 This reason code is for IBM internal diagnostic purposes only. Record it and supply it to the appropriate IBM support personnel.
08 34 This reason code is for IBM internal diagnostic purposes only. Record it and supply it to the appropriate IBM support personnel.
0C 00 Console is active. If the console is an MCS console, deactivate the console. If the console is a subsystem console, the console is currently allocated to a subsystem. Release the subsystem console, and try the service again to remove the console.
0C 04 Console is not an MCS or SMCS console. Ensure that the console to be removed is for an MCS or SMCS console defined in CONSOLxx.
0C 08 Console is not defined in CONSOLxx. Ensure that the active CONSOLxx member contains a CONSOLE definition statement for an MCS or SMCS or subsystem allocatable console.