skip to main content

Data Division : Data Names : Subscripting

Subscripting
Subscripts are used when reference is made to an individual element within a table of like elements that have not been assigned individual data-names.
General format
                   {  ALL                                      }
Syntax rules
1.
The data description entry containing Data-Name-1 or the data name associated with Condition-Name must contain an OCCURS clause or must be subordinate to a data description entry which contains an OCCURS clause.
2.
Except as defined in syntax rule 3, when a reference is made to a table element, the number of subscripts must equal the number of OCCURS clauses in the description of the table element being referenced. When more than one subscript is required, the subscripts are written in the order of successively less inclusive dimensions of the table.
3.
a.
b.
In a REDEFINES clause.
c.
In the KEY IS Phrase of an OCCURS clause
4.
Data-name-2 and Data-name-3 may be qualified and must be numeric elementary items representing an integer.
5.
Integer-1 and Integer-2 may be signed and, if signed, they must be positive.
6.
Index-Name-1 is a data description entry in the hierarchy of the table being referenced which contains an INDEXED BY phrase specifying the index name.
General rules
1.
2.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left