Subscripts
ENFORM Language Elements
3–10
058057 Tandem Computers Incorporated
grp-name
is the name of a group described in the dictionary. A group is defined as a record
element whose level number (02, 03, 04,...) is less than that of the next record
element.
field-name-ref2
is the name of a subordinate field. A subordinate field is defined as a record
element whose level number (05, 06, 07,...) is greater than that of grp-name.
When a subscript is included with a reference to a table name, a user variable name, or
a field name, ENFORM determines whether the subscript is a valid subscript value
allowed for the table, variable, or field. A valid subscript value for a field or user
variable is 1. Valid subscript values for a user table are defined in the DECLARE
statement. For example, consider the following user table declaration:
DECLARE u-var[ 24 ];
The valid subscript values for u-var are 1 through 24. Valid subscript values for data
base tables are defined by the OCCURS clause in the dictionary description of the
table. For example:
02 monthly-sales OCCURS 12 TIMES.
The valid subscript values for monthly-sales are 1 through 12.
Both user and data base tables can be referenced without a subscript. ENFORM
assumes a subscript of 1. For example:
u-var
Refers to the first element of the user table.
monthly-sales
Refers to the first element of the data base table.
Including a subscript with a user or data base table reference identifies the individual
elements of the table. For example:
u-var [ 2 ]
Refers to the second element of the user table.
monthly-sales [ 4 ]
Refers to the fourth element of the data base table.
Summary of Contents for ENFORM 058057
Page 6: ...New and Changed Information 058057 Tandem Computers Incorporated v...
Page 18: ...Preface xvi 058057 Tandem Computers Incorporated This page left intentionally blank...
Page 19: ...Preface 058057 Tandem Computers Incorporated xvii...
Page 269: ...Glossary Glossary 4 058057 Tandem Computers Incorporated This page left intentionally blank...