FORTRAN Reference Manual
FORTRAN Reference Manual—528615-001
7-1
7 Statements
This section describes the FORTRAN language statements. Topics covered in this
section include:
For a summary of FORTRAN statements and an explanation of statement order and
statement types, see Section 6, Introduction to Statements.
Type Declaration Statements
You use type declaration statements to override or confirm implicit typing and to specify
the dimensions of arrays.
The appearance of the symbolic name of a constant, variable, array, external function,
RECORD field, or statement function in a type declaration statement specifies the data
type of that name throughout the program unit.
You can use a type declaration statement to declare the type of an array as well as to
specify the array’s dimensions. The following statement dimensions the array ZIP and
declares it to be an integer array:
INTEGER zip (100)
You must specify an array’s dimensions in a type declaration statement, a COMMON
statement, or a DIMENSION statement. An array’s dimensions must be declared only
once in a program unit.
Considerations
•
You can define the data type of an entity only once in a program unit.
•
You cannot use type declaration statements to redefine the data type of an intrinsic
function.
•
You cannot specify a type for the name of a main program, subroutine, or block
data program unit.
For additional information about implicit and explicit data types, see Section 2,
Language Elements.
Topic Page
Type Declaration Statements
7-1
Statement Function 7-5
Assignment Statement 7-7










