Native Inspect Manual (H06.07+)
Using Native Inspect With COBOL Programs
Native Inspect Manual—528122-006
3-3
Specifying Tables
The variable INT is defined in both REC and REC2. You would specify the variable INT
that is contained in REC2 in any of the following ways:
INT OF REC2
INT IN REC2
REC2.INT
When you use the period (.) syntax, the record name comes first, followed by the
variable name. (This use of the period is Native Inspect syntax, not COBOL syntax.)
When qualifying a nonunique variable name, you must specify only enough qualifiers
to make the variable reference unique. Thus, in the preceding declaration, you need
not specify
INT OF REC2 OF REC
or
INT IN REC2 IN REC
or
REC.REC2.INT
If you specify a nonunique variable name without qualification or with insufficient
qualification, Native Inspect reports an error.
Specifying Tables
You reference individual table elements by specifying the table name followed by
subscripts in parentheses. For multidimensional tables, the subscripts are separated by
commas. For example, consider the following declaration:
02 TOTAL OCCURS 20 TIMES.
03 TOTAL-A OCCURS 3 TIMES.
The following example refers to a specific element of the two-dimensional table
TOTAL-A:
TOTAL-A (4, 2)
In Native Inspect, unlike in a COBOL program, you cannot use spaces as subscript
separators.
When referencing a multilevel table in Native Inspect, you can apply subscripts only to
the last item in the reference. For example, consider the following declaration:
01 VEHICLE.
03 MODEL OCCURS 9 TIMES.
05 STYLE OCCURS 12 TIMES.
07 COLOR OCCURS 15 TIMES PICTURE 9(10).










