Native Inspect Manual (H06.07+)
Using Native Inspect With COBOL Programs
Native Inspect Manual—528122-006
3-5
Specifying Level 88 Condition Names
Specifying Level 88 Condition Names
You can attach a condition name to any data item. You specify a condition name the
same way as you would specify a member of a record. For example, consider the
declaration:
01 REC.
05 ITEM PIC 99.
88 GOOD-ITEM VALUE 10 THRU 20.
You could specify:
GOOD-ITEM OF ITEM OF REC
or omit any qualifiers not required for uniqueness, just as you would for any other data
item.
You can also attach a condition name to a table or to a member of a record that is a
table. In that case, you must specify a subscript with the condition name. To evaluate
the condition name, specify the same subscript on the condition name as you would for
the condition variable name. For example, consider the following declaration:
01 REC.
02 TABLE OCCURS 4 TIMES.
03 ITEM PIC 99.
88 ITEM-OK VALUE 12.
Any reference to ITEM-OK requires a subscript because any reference to ITEM
requires a subscript. For example, the following command evaluates and displays the
second instance of ITEM-OK:
print ITEM-OK(2)
Displaying Variables
Native Inspect follows COBOL rules for displaying numeric, alphanumeric, and edited
data items. Some considerations are:
•
Native Inspect does not allow the use of the PICTURE clause to format variables
for display.
•
You can display a variable in a different radix by using the FORMAT clause of the
print and x commands, as described under Machine-Level Debugging on
page 3-10.










