At ABEND, R15 contains the REASON.  For a normal return, R15 contains the
return code, and R0 often contains a reason, but that is a weaker
convention.  On a normal return, registers come back however the called
program sets them.  However, a subtask returns to the system.  Maybe you
could find the extant contents of R0 somewhere, but that isn't usually
done.  If really necessary, I'd probably consider a shell program to handle
it.

As for distinguishing between an ABEND code and RC in the ECB, you can
check the ABTERM flag in the subtask's TCB.

sas


On Sat, Aug 3, 2019 at 4:54 PM Seymour J Metz <sme...@gmu.edu> wrote:

> ITYM R15.
>
> description of ABEND includes " ,REASON=reason code".

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to