HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
DATA
Chapter 10 313
DATA
Initializes program variables.
Syntax
DATA
var-list1
/
val-list1
/ [[,]
var-list2
/
val-list2
/]...
var-list
is a comma-separated list of entities, including the following:
A variable name
An array name
An array triplet section; for example:
points(1:10:2)
An array element reference; for example:
scores(0)
A substring name; for example:
name(1:10)
An implied-DO loop; for example:
((matrix(i,j),i=0,5),j=5,10)
An object of a derived type
A component of a derived-type object
The following cannot appear in
var-list
:
Pointer-based variables
Records and record field references. However, you can initialize a
record’s fields in the record’s structure definition. See “RECORD
(extension)” on page 448.
Automatic objects, including automatic character strings
Dummy arguments
Allocatable arrays: that is, arrays declared with a specified rank, but no
specified bounds within each dimension
The result variable of a function
Objects made available by use or host association