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]
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:
PAUSE prompt>
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:
Any command (other than CONTINUE or DEBUG) terminates
execution.
Effect on a Batch or Background Process
If a program is a batch or background process, the effect differs as
follows:
In this message,
To continue from background, execute 'kill -15 n'
n
is the process id of the
program.
For details on stdin, see your user manual.