The PROGRAM statement identifies the program unit as a main program.
Parameter |
Description |
pgm |
Symbolic name of the main program |
For the loader, the main program is always named MAIN. The PROGRAM statement serves only the person who reads the program.
The PROGRAM statement can appear only as the first statement of the main program.
The name of the program cannot be:
The same as that of an external procedure or common block
MAIN (all uppercase), or a runtime error results
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.
PROGRAM US_ECONOMY NVARS = 2 NEQS = 2 ...