Native Inspect Manual (H06.13+, J06.03+)

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:
(eInspect 3,1012):print ITEM-OK(2)
Displaying Variables
Native Inspect follows COBOL rules for displaying numeric, alphanumeric, and edited data items.
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 in the section:Performing Machine-Level Debugging (page 54).
Displaying Level 88 Condition Names
Native Inspect displays Level 88 condition names as one of the values T or F. The value displayed
depends on the value of the variable to which the condition belongs. For example, consider the
following declaration:
77 VAR PIC S99 VALUE 1.
88 COND-1 VALUE 1.
88 COND-2 VALUE -1.
The following Native Inspect commands display the values indicated:
displays the value ‘T’ because the value of COND-1 matches the value of
VAR.
print COND-1
displays the value ‘F’ because the value of COND-2 does not match the
value of VAR.
print COND-2
displays the actual value stored in VAR; in this case the value is 1.print VAR
Displaying Argument Values
By default, Native Inspect displays only the addresses of program and function arguments when
a breakpoint is encountered, a backtrace is done, or execution steps into a function. To display
the actual argument values on the occurrence of any of these events, specify the following command:
(eInspect 3,1012): set print cobol-arg-values on
Displaying Unprintable Characters
COBOL support is improved to display unprintable characters and substring searches. In previous
releases, Native Inspect would display unprintable characters using C programing format. For
example, a character with a value of 0 was displayed as \000. In this release, unprintable
characters are printed using COBOL Hexadecimal Nonnumeric Literals. For example, a character
with a value of 0 now displays as follows: X00.
Displaying the Length of the COBOL Variables
You can display the length of the COBOL variables using the print length command:
print length cobol-variable (or) print length (cobol-variable)
To print the length of an individual table element, subscript the table element. For example, consider
the following declaration:
01 MASTER.
02 TABLE-1 OCCURS 5 TIMES.
50 Using Native Inspect With COBOL Programs