HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
STOP
Chapter 10464
STOP
Terminates program execution.
Syntax
STOP [
stop-code
]
stop-code
is a character constant, a named constant, or a list of up to 5 digits.
Description
The STOP statement terminates program execution and optionally prints a message to
standard error or standard list.
STOP also sends a message to standard error, dependent on whether digits, characters, or
nothing was specified with the STOP statement:
If digits are specified, the message “STOP
digits
” is written to standard error.
If a character expression is specified, the message “STOP
character-expression
” is
written.
If nothing appears after STOP, nothing is written.
Examples
IF (b .LT. c) STOP 'BAD VALUE!'
Related statements
PAUSE
Related concepts
For information about flow control statements, see “Flow control statements” on page 146.