Values Returned at Program Termination
A Visual Fortran program can terminate in one of several ways:
- The program runs to normal completion. A value of zero is returned
to the shell.
- The program stops with a STOP statement. A value of zero
is returned to the shell.
- The program stops because of a signal that is caught but does not allow
the program to continue. A value of 1 is returned to the shell.
- The program stops because of a severe run-time error. The error number
for that run-time error is returned to the shell. Error numbers are listed
in Visual Fortran Run-Time Errors.
- The program stops with a CALL EXIT statement. The value passed to
EXIT is returned to the shell.