Any program that returns to the operating system by branching
to the address it was told when it initially got control is
assumed to have completed successfully.

SVC 3 = normal completion
SVC 13 = abnormal completion

If sss in nonzero, it was abended by a service routine and
sss is the hexadecimal abend code. If uuuu is nonzero, the
abended was coded by the programmer asked for an abend with
the decimal abend code uuuu (0-4095).

That's not entirely accurate.  It depends how the SVC 13 is issued.

One problem here is of terminology. "Return code", "condition code" and "completion code" tend to be used interchangably.


From: "Hunkeler Peter (KIUB 34)" <[EMAIL PROTECTED]>
Reply-To: IBM Mainframe Discussion List <IBM-MAIN@BAMA.UA.EDU>
To: IBM-MAIN@BAMA.UA.EDU
Subject: Re: Why is it still there?
Date: Fri, 25 Aug 2006 16:58:27 +0200

Any program that returns to the operating system by branching
to the address it was told when it initially got control is
assumed to have completed successfully.

The return code does not matter from MVS's point of view.
It does of course from the application's point of view, since
it tells the user whether the program could do its task as it
was requested.

If the program fails either becaue some OS service it called
decided to abnormally end (abend) the program of because the
programmer decided that in a specific case it should ABEND
(which is an MVS service), then and only then does MVS
consider the program has abnormally ended.

If you see
     "STEP WAS EXECUTED - COND CODE nnnn"
on the step end message, the program succeeded in MVS's eyes.
nnnn is the decimal return code from the program and is in
the range of 0 - 4095

If you see
     "COMPLETION CODE - SYSTEM=sss USER=uuuu REASON=rrrrrrrr"
then the program has or has been abnormally ended.
If sss in nonzero, it was abended by a service routine and
sss is the hexadecimal abend code. If uuuu is nonzero, the
abended was coded by the programmer asked for an abend with
the decimal abend code uuuu (0-4095).



Peter Hunkeler
CREDIT SUISSE

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

_________________________________________________________________
All-in-one security and maintenance for your PC. Get a free 90-day trial! http://www.windowsonecare.com/trial.aspx?sc_cid=msn_hotmail

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to