FORTRAN 77 Language Reference

STOP

The STOP statement terminates execution of the program.

STOP [str]

Parameter 

Description 

str

String of no more that 5 digits or a character constant 

Description

The argument str is displayed when the program stops.

If str is not specified, no message is displayed.

Examples

Example 1: Integer:


       stop 9 

The above statement displays:


       STOP: 9 

Example 2: Character:


       stop 'error' 

The above statement displays:


       STOP: error