BLOCK DATA
Purpose
A BLOCK DATA statement is the first statement in a block data program unit, which provides initial values for variables in named common blocks.
Syntax
- block_data_name
- is the name of a block data program unit
Rules
You can have more than one block data program unit in an executable program, but only one can be unnamed.
The
name of the block data program unit, if given, must not be the same
as an external subprogram, entry, main program, module,
submodule
, or common block in the executable program.
It also must not be the same as a local entity in this program unit.
Examples
BLOCK DATA ABC
PARAMETER (I=10)
DIMENSION Y(5)
COMMON /L4/ Y
DATA Y /5*I/
END BLOCK DATA ABC
Related information
- Block data program unit
- END for details on the END BLOCK DATA statement



