Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-61
Using the AS Clause
12. This is an example of using an apostrophe in an apostrophe-delimited string.
13. This example shows the use of displaying a string with the IN clause.
14. The next example shows the use of displaying a simple expression.
15. This example shows the use of expressions with the IN clause.
16. This example displays the address of a variable
Using the AS Clause
The AS clause directs Inspect to display an item using the attributes of a data type
defined in the current program.
item
specifies the item you want to display. You can specify a data address or an SPI
token as the item.
-PROGRAM-DISPLAY 'T''s value is ', T PLAIN
"T's value is ", 53
-PROGRAM-DISPLAY "Hello" IN OCTAL
%110 %145 %154 %154 %157
-PROGRAM-DISPLAY (132 + 98)
230
-PROGRAM-DISPLAY (231) IN BINARY
0000000011100111
-PROGRAM-DISPLAY (@two_var)
6
Note. The AS clause is invalid for PATHWAY requester programs.
DISPLAY item AS data-type
item: one of
data-location
spi-token
data-location: one of
( expression ) [ SG ]
identifier