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.67 PROGRAM Statement<br />

<br />

PROGRAM pgm<br />

where:<br />

pgm<br />

is the symbolic name of the main program.<br />

A PROGRAM statement is optional in an executable program. If it does appear, it must be the first statement<br />

in the main program.<br />

Example:<br />

PROGRAM CALC<br />

.<br />

.<br />

.<br />

CALL COMPUTE<br />

.<br />

.<br />

.<br />

END<br />

The main program can contain any <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> statement except a FUNCTION,<br />

SUBROUTINE, BLOCK DATA, RETURN or ENTRY statement. Note that a SAVE statement is allowed<br />

but has no effect in the main program.<br />

PROGRAM Statement 121

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

Saved successfully!

Ooh no, something went wrong!