Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-73
Using the PIC Clause
Using the PIC Clause
The PIC clause directs Inspect to format a list of items using mask strings and the M
edit descriptor of the operating system formatter.
The M edit descriptor provides a formatting mechanism called “mask formatting,” which
is similar to the COBOL PICTURE clause. For more information, consult the formatter
documentation in the Guardian Programmer’s Guide.
item [ , item ]...
specifies the list of items you want to display.
PIC mask-str [ , mask-str ]...
directs Inspect to format items using mask strings and the Edit descriptor of the
operating system formatter. These characters have special functions in mask-
string :
The formatter displays all other characters (including lowercase z and v) exactly as
they appear in mask-string. Mask strings and the M edit descriptor are
described fully in the Guardian Programmer’s Guide.
DISPLAY item [ , item ]... PIC mask-str [ , mask-str ]...
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 ]
mask-str:
a mask string for the M edit descriptor
V (uppercase V only)
Z (uppercase Z only)
9
.