PAUSE

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.

Syntax

Read syntax diagramSkip visual syntax diagram>>-PAUSE--+---------------+------------------------------------><
          +-char_constant-+
          '-digit_string--'
 

char_constant
is a scalar character constant that is not a Hollerith constant
digit_string
is a string of one to five digits

Rules

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

Examples

      PAUSE 'Ensure backup tape is in tape drive'
      PAUSE 10             ! Output:  PAUSE 10

Related information