We have recently seen our Cobol program calls to Assembler sub-programs abend with a S0C5.
We changed our default for a mainframe dialect from AMODE(31) to NOAMODE for performance reasons and started issuing the S0C5 abend to highlight an address incompatibility when Cobol CALLs an Assembler sub-program and the AMODEs do not match. Depending on if one is debugging or running an application, the error might show up as a RTS200, a message in the Assembler debugger saying 'Questionable exit from address space' or a S0C1 abend. Re-compile the Cobol programs that will call Assembler to use AMODE(31) or AMODE(24) depending the expected AMODE for the application. If possible, use it for all programs in the application.
Additional Keywords: IFD-005W Program-Interruption Operation exception IDF-106I Questionable exit from address space
#MFDS
#EnterpriseDeveloper
