FORTRAN 77 Language Reference

PROGRAM

The PROGRAM statement identifies the program unit as a main program.

PROGRAM pgm

Parameter 

Description 

pgm

Symbolic name of the main program 

Description

For the loader, the main program is always named MAIN. The PROGRAM statement serves only the person who reads the program.

Restrictions

The PROGRAM statement can appear only as the first statement of the main program.

The name of the program cannot be:

The name of the program can be the same as a local name in the main program.@ The FORTRAN 77 Standard does not allow this practice.

Example

Example: A PROGRAM statement:


       PROGRAM US_ECONOMY 
       NVARS = 2 
       NEQS = 2 
       ...