Purpose
The PAUSE statement temporarily suspends the execution of a program and prints the keyword PAUSE and, if specified, a character constant or digit string to unit 0.
>>-PAUSE--+---------------+------------------------------------>< +-char_constant-+ '-digit_string--' |
+-------------------------------IBM Extension--------------------------------+
After execution of a PAUSE statement, processing continues when you press the Enter key. If unit 5 is not connected to the terminal, the PAUSE statement does not suspend execution.
+----------------------------End of IBM Extension----------------------------+
+---------------------------------Fortran 95---------------------------------+
The PAUSE statement has been deleted in Fortran 95.
+-----------------------------End of Fortran 95------------------------------+
PAUSE 'Ensure backup tape is in tape drive' PAUSE 10 ! Output: PAUSE 10
Related Information