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

Reply via email to