>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."
> 
> Charles
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to