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.
Format
>>-BLOCK DATA--+-----------------+----------------------------->< '-block_data_name-' |
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, or common block in the executable program. It also must not be the same as a local entity in this program unit.
BLOCK DATA ABC PARAMETER (I=10) DIMENSION Y(5) COMMON /L4/ Y DATA Y /5*I/ END BLOCK DATA ABC
Related Information