FORTRAN Reference Manual
Statements
FORTRAN Reference Manual—528615-001
7-81
PAUSE Statement
PAUSE Statement
The PAUSE statement temporarily halts program execution.
message
is an unsigned integer constant of up to five digits or a character constant of up to
80 characters that is displayed when the program executes the PAUSE statement.
If you compile your program with ENV OLD in effect, FORTRAN displays message
on your home terminal unless you specify the TERM run-option when you run your
program, in which case FORTRAN displays message on the device you specify in
the TERM run-option.
If you compile your program with ENV COMMON, FORTRAN writes message to
the standard log file. For more information about the standard log file, see the CRE
Programmer’s Guide.
Considerations
•
The PAUSE statement temporarily halts execution of the program in which it
occurs, until you enter a carriage return via the home terminal. Program execution
resumes with the next executable statement following the PAUSE statement. The
program ignores any data entered at the home terminal while in the paused state.
•
message enables you to display a numeric identifier or a text message when the
PAUSE statement executes. message is optional; if you do not specify message,
FORTRAN displays the single word “PAUSE”.
Examples
PAUSE 55566
PAUSE 'Mount next tape!'
POSITION Statement
The POSITION statement makes it possible for sequential-access I/O statements to
perform random access of structured files, either by record number or by specified
primary or alternate keys.
unit
is an integer expression from 1 through 999 that specifies the unit to be positioned.
PAUSE [ message ]
POSITION ( [UNIT =] unit [, IOSTAT = ios ]
[, ERR = lbl ], position)










