Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-70
Using the IN Clause
5. This example shows the character string STRINGVAR is displayed. The second
instance uses the A edit descriptor. The third instance adds the characters “e!” to
the output being displayed.
6. This example shows how the FORMAT clause can be used with the VALUE clause
to display an integer and a real value.
Using the IN Clause
The IN clause directs Inspect to display a list of items in one or more bases.
item [ , item ]...
specifies the list of items you want to display.
IN base [ base ]...
directs Inspect to display each item in one or more of these eight bases:
;BINARY displays items as binary values.
OCTAL displays items as octal values.
-FOROBJ-DISPLAY stringvar
STRINGVAR = "This is a forty character string variabl"
-FOROBJ-DISPLAY stringvar FORMAT (A40)
This is a forty character string variabl
-FOROBJ-DISPLAY stringvar FORMAT (A40,'e!') -- complete the string!
This is a forty character string variable!
-FOROBJ-DISPLAY VALUE 10 FORMAT (I4)
10
-FOROBJ-DISPLAY VALUE 25.678 FORMAT (E10.4)
0.2568E+05
DISPLAY item [ , item ]... IN base [ base ]...
item:
one of
display-data [ WHOLE ] [ PLAIN ] [ FOR for-spec ]
display-code [ WHOLE ] [ PLAIN ] [ FOR for-spec ]
REGISTER register-item [ TYPE display-type ]
spi-buffer
spi-token [ AS data-type ] [ FOR for-count ]
string
( expression )
VALUE value-list [ TYPE display-type ]
base:
one of
BINARY OCT[AL] DEC[IMAL] HEX[ADECIMAL]
ASCII XASCII GRAPHIC[S]
ICODE