# 5.10 STOP Statement

The STOP statement terminates program execution. It takes the following form:

    STOP [disp]

disp
  Is an optional character constant or a string of up to six digits. (FORTRAN-77 limits digits to five.)

If you specify disp, the STOP statement displays the contents of disp at your terminal, terminates program execution, and returns control to the operating system.

If you do not specify a value for disp, the following occurs:

- On VAX processors, the system displays the following message:

      FORTRAN STOP

- On Alpha processors, no message is displayed.

Examples

The following examples show valid STOP statements:

    STOP 98

    STOP 'END OF RUN'

Previous Page Next Page Table of Contents