XL Fortran for AIX 8.1

Language Reference

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.

Format



>>-BLOCK DATA--+-----------------+-----------------------------><
               '-block_data_name-'
 
 

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, 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


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]