/sys$common/syshlp/helplib.hlb
FORTRAN, Statements, DATA

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

  Assigns values to variables at compile time.  The values within the
  backslashes are assigned to the preceding variables left to right;
  the number of values must equal the number of variable elements.
  Statement format:

     DATA nlist/clist/[[,] nlist/clist]...

     nlist  Is a list combining any combination of variable names,
            array names, array element names, character substring
            names, and implied-DO lists.  (RECORDs are not allowed
            in this list.)  Elements in the list must be separated
            by commas.

            Subscript expressions and expressions in substring
            references must be integer expressions containing
            integer constants and implied-DO variables.

            An implied-DO list in a DATA statement takes the
            following form:

            (dlist, i = n1,n2[,n3])

            dlist     Is a list of one or more array element
                      names, character substring names, or
                      implied-DO lists, separated by commas.

            i         Is the name of an integer variable.

            n1,n2,n3  Are integer constant expressions.  The
                      expression can contain implied-DO variables
                      of other implied-DO lists that have this
                      implied-DO list within their ranges.

     clist  Is a list of constants separated by commas; "clist"
            constants take one of the following forms:

            c OR n *c

            c  Is a constant or the symbolic name of a constant.

            n  Defines the number of times the same value is to
               be assigned to successive entities in the associated
               "nlist"; "n" is a nonzero, unsigned integer constant
               or the symbolic name of an unsigned integer constant.

  The DATA statement assigns the constant values in each "clist" to
  the entities in the preceding "nlist", from left to right, as they
  appear in the "nlist".  The number of constants must equal the
  number of entities in the "nlist".

  When an unsubscripted array name appears in a DATA statement,
  values are assigned to every element of that array in the order of
  subscript progression.  The associated constant list must contain
  enough values to fill the array.

  For more information on the relationship between "nlist" and
  "clist", see your user manual.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.