@Kirk, is the ABEND reason code somewhere in the TCB? I would do the search but you can do it as well as I.
Is R0 = normal completion reason code "architected"? I don't recall that it is. It is something of a convention, but is it an "MVS linkage"? If not, I *suspect* the contents of R0 have vanished. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Kirk Wolf Sent: Saturday, August 3, 2019 2:06 PM To: [email protected] Subject: Getting ABEND reason code from attached subtask I'm curious. Say that I have something like: ATTACH EP=MYPROG,ECB=MYECB LTR R15,R15 BZ ATTERR ST R1,MYTCB WAIT 1,ECB=MYECB DETACH MYTCB I know that I can get either the subtask return code or ABEND completion code(s) from the ECB. But in the case of an ABEND, is there an easy way to get the reason code? Or do I need an ESTAI routine on the ATTACH to capture that? Similarly, what about the normal completion reason code (R0)? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
