HP Fortran Programmer's Reference (September 2007)

Language elements
Statements
Chapter 2 47
Table 2-3 identifies which statements may appear within a scoping unit; a check mark
indicates that a statement is allowed in the specified scoping unit. For the purpose of this
table, type declarations include the PARAMETER statement, the IMPLICIT statement, type
declaration statements, derived-type definitions, and specification statements.
Table 2-3 Statements allowed in scoping units
Scoping units
Statements
Main program
External
procedure
Module
Module
procedure
Internal
procedure
Interface
body
Block data
program unit
CONTAINS ✓✓✓✓
DATA ✓✓✓✓✓
ENTRY ✓✓
Executable ✓✓ ✓✓
FORMAT ✓✓ ✓✓
Interface block ✓✓✓✓✓✓
Statement function ✓✓ ✓✓
Type declaration ✓✓✓✓✓✓✓
USE ✓✓✓✓✓✓✓