11.4 x/zvend—(Do
Not Use) Terminate processing
call xvend(status)
zvend(status)
Use
abend/zabend
instead.
x/zvend
is used to terminate a program. It may be called from any location in the
program, making it possible to terminate processing from subroutines, similar
to the FORTRAN STOP statement.
Use
of
x/zvend
should normally be avoided, for the following reasons:
- When
processing terminates because of an unrecoverable error,
abend/zabend
should be used, because
abend/zabend
has certain checks which
x/zvend
does not supply, and
abend/zabend
prints out a standard message which is familiar to the users.
- When
terminating processing normally, it is a better practice to return control
systematically back to the main portion of the program (in our case to
subroutine MAIN44) in order to make the software more easily maintainable.
A
FORTRAN “STOP” statement or a C ”exit” call should
never be used in a VICAR program.
Arguments:
- STATUS:
input, integer
The
status with which processing should be terminated. Only two values are allowed:
a status of 1 means successful completion, while a status of 0 means abnormal
termination. The status is passed back up to the supervisor portion of the
executive where it may be entered into logs, etc.