Top: f77 Up: 13 - Statements
Previous: 13,47 - PARAMETER Next: 13,49 - POINTER
Section 13,48: PAUSE
The PAUSE statement displays a message on the terminal and
temporarily suspends program execution, so that you can take some
action. Statement format:
PAUSE [disp]
disp Is an optional character constant or a string of
up to six digits. (FORTRAN-77 limits digits to five.)
If you do not specify a value for "disp", the system displays the
following default message:
FORTRAN PAUSE
The system then displays the following prompt:
PAUSE prompt>
If you specify a value for "disp", this value is displayed instead
of the default message.
EFFECT OF PAUSE IN INTERACTIVE OR FOREGROUND MODE:
In interactive or foreground mode, the program is suspended until
you enter a command.
To resume processing, enter CONTINUE, and execution will resume at
the next executable statement. Any other command terminates
execution.
EFFECT OF PAUSE IN BACKGROUND PROCESS MODE:
In background mode, the effect differs depending on stdin (standard
input), as follows:
o If stdin is redirected to a file, the system displays the
following (after the message and prompt):
To continue from background, execute 'kill -15 n'
In this message, "n" is the process id of the program.
o If stdin is not redirected to a file, the program becomes a
suspended background job, and you must specify fg to bring the
job into the foreground. You can then enter a command to
resume or terminate processing.
Top: f77 Up: 13 - Statements
Previous: 13,47 - PARAMETER Next: 13,49 - POINTER