Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-58
Displaying Strings, Expressions, and Constant
Values
Displaying Strings, Expressions, and Constant
Values
You can use the DISPLAY command to format and display strings, expressions (after
Inspect evaluates them), and constant values. You can use the FORMAT, IN, and PIC
clauses to format any of these items. You can also use the TYPE clause to format
constant values.
item [ , item ]...
specifies the list of items to display. Inspect determines the default display format
of an item based on the type of value that the item represents.
string
specifies a string of characters to display. This string is a group of zero or more
characters enclosed in either quotes or apostrophes. To include a quote in a quote-
delimited string, use a pair of quotes. Likewise, to include an apostrophe in an
apostrophe-delimited string, use a pair of apostrophes.
( expression )
specifies an expression to evaluate and display. The expression must use the
syntax appropriate for the current source language. Note that this is not true for
“@” used in an expression in COBOL85. For more information, see Section 10,
Using Inspect With COBOL and SCREEN COBOL.
DISPLAY item [ , item ]... [ formatting-clause ]
item: one of
string
( expression )
VALUE value-list [ TYPE display-type ]
value-list: one of
integer
integer , integer
integer , integer , integer , integer
formatting-clause: one of
IN base [ base ]...
{ FORMAT | FMT } format-list
PIC mask-string [ , mask-string ]...