Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-75
Using the TYPE Clause
1. This example displays sub-elements of ARR1 using the PIC clause.
2. This example displays var1 and arr1 with decimal alignment as stated in the PIC
clause.
3. This example displays arr1 with implied decimal alignment as stated in the PIC
clause.
4. This example shows the usage of the PIC clause of the DISPLAY command with
the FOR clause.
Using the TYPE Clause
The TYPE clause directs Inspect to display an item using the attributes of a display
type defined by Inspect.
-PROGRAM-DISPLAY arr1 PIC "ZZZ999"
12345
005
123
02
-PROGRAM-DISPLAY var1 PIC "ZZ99.99"
02.00
-PROGRAM-DISPLAY arr1 PIC "ZZZ.99"
123.45
05
1.23
2
-PROGRAM-DISPLAY arr1 PIC "ZZZZZV99"
12345
05
123
2
-PROGRAM-DISPLAY arr1 FOR 1 PIC "ZZ.99"
01
-PROGRAM-DISPLAY arr1 FOR 5 PIC "ZZ99"
01
02
03
04
05
Note. The TYPE clause can also direct Inspect to display an SPI buffer or token. This second
usage of the TYPE clause is described in the subsection “Displaying SPI Data.”