24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>FORTRAN</strong> Statements<br />

2.65 PAUSE Statement<br />

<br />

PAUSE [n]<br />

where:<br />

n<br />

is a character constant or an unsigned integer constant of no more than five digits.<br />

<strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> allows n to be any unsigned integer constant.<br />

Execution of a PAUSE statement causes a cessation of execution of the program. Execution of the program<br />

may be resumed by the program operator by pressing the terminal line entering key (e.g., ENTER or<br />

RETURN). The PAUSE statement may appear in any program unit.<br />

If the <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> debugger was requested then execution of the PAUSE statement will<br />

cause entry into the debugger. Program execution may be resumed by issuing the debugger "go" command.<br />

Example:<br />

PAUSE 4341<br />

The four digit number 4341 is displayed on the terminal. The program temporarily ceases execution.<br />

Execution is resumed by pressing the terminal line entering key.<br />

Example:<br />

PAUSE ’Ready the paper and then resume execution’<br />

The character string<br />

Ready the paper and then resume execution<br />

is displayed on the terminal. Execution of the program may be resumed.<br />

PAUSE Statement 117

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!