Right. So, you've got an ECB with an 8 in bits 20 through 31. How do you tell if that is an RC=8 or a U0008?
Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of retired mainframer Sent: Saturday, December 12, 2015 9:49 AM To: [email protected] Subject: Re: How distinguish User ABEND from return code? >From MVS Data Areas Volume 2 "An ECB can be posted with a two-part completion code: - Bits 1 through 7 are posted by data management and teleprocessing functions. This part of the completion code is described in the mapping of the ECB control block. - Bits 8 through 31 are posted by all system components and by user-written programs. When a task is abnormally terminated, the ECB for the task is posted with an abnormal system completion code in bits 8 through 19, or with an abnormal user completion code in bits 20 through 31." > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] > On Behalf Of Charles Mills > Sent: Saturday, December 12, 2015 7:25 AM > To: [email protected] > Subject: How distinguish User ABEND from return code? > > Given the ECB of a completed subtask, and a pointer to its TCB, how > does one > distinguish a user ABEND from a "regular" return code? If, for > example, the > low-order bits of the ECB contain 8, how would a program determine > whether that was RC=8 or ABEND U0008? > > Is there a definitive "this task ABENDed" bit in the TCB? I see lots > of bits > with "ABEND" in their description but I don't see one that seems to > definitively indicate simply "this task ABENDed." ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
