Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-59
Usage Guidelines
VALUE value-list [ TYPE display-type ]
specifies a list of one, two, or four integer values to display. The TYPE clause causes
Inspect to display the values using the attributes of a specific display type. For more
information about the TYPE clause, see formatting-clause
specifies the format Inspect should use when displaying each item. Inspect
provides three format clauses: FORMAT, IN, and PIC. For more information, see
Using the FORMAT Clause on page 6-67, Using the IN Clause on page 6-70, and
Using the PIC Clause on page 6-73.
Usage Guidelines
Displaying Strings
If you are logging your Inspect session to a disk file, you might want to display a
character string when the program reaches a certain point in its execution. Here is
an example of using a DISPLAY command to report only a character string:
Using TYPE with VALUE
When you use the VALUE clause with the TYPE clause, you must ensure that the
size of the values you provide matches the size of the display type you specify.
Displaying Types
Display types CRTPID, DEVICE, FILENAME, FILENAME32, PROCESS HANDLE,
SSID, and USERNAME may not be used with VALUE.
Examples
1. This example shows converting two integer values into an INT(32) value.
2. This example illustrates converting four integer values into a quad word value.
3. This example illustrates using the VALUE clause with the TYPE clause for ENV.
-PRG-BREAK stage-two THEN "DISPLAY 'Finished stage 1';RESUME"
--DISPLAY VALUE %10,0
524288
--DISPLAY VALUE 748,50977,49935,40960
210762230400000000.
--DISPLAY VALUE %4207 TYPE ENV
(RP=7,CCG,T,LS) UL.7