5.8 PAUSE Statement

The PAUSE statement displays a message on the terminal and temporarily suspends program execution, so that you can take some action. It takes the following form:

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

Rules and Behavior

If you do not specify a value for disp, the system displays the following default message:

FORTRAN PAUSE

The system then displays one of the following prompts:

If you specify a value for disp, this value is displayed instead of the default message. For example:

PAUSE 'ERRONEOUS RESULT DETECTED'

In this case, the system replaces the default message with the following:

ERRONEOUS RESULT DETECTED

You then see your prompt.

Effect on an Interactive or Foreground Process

If a program is an interactive or foreground process, the program is suspended until you enter a command.

To resume processing, proceed as follows:

Effect on a Batch or Background Process

If a program is a batch or background process, the effect differs as follows:

For More Information:

For details on stdin, see your user manual.


Previous Page Next Page Table of Contents