Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-68
Examples
{ FORMAT | FMT } format-list
directs Inspect to format items using the operating system formatter. format-list is a
list of edit descriptors (with optional modifiers, decorations, and so on), separated
by commas. The edit descriptors available in HP FORTRAN are also available in
Inspect.
The operating system formatter provides several additional descriptors. For more
information, see the Guardian Programmer’s Guide.
Usage Considerations
Size Limits on DISPLAY FORMAT Formatting
Displays using the FORMAT clause cannot exceed one screen (24 lines) or 3168
bytes of data. Exceeding these limits causes Inspect to report an error instead of
formatting and displaying the data.
Using DISPLAY FORMAT in Command Lists
If you use DISPLAY FORMAT in a command list, it must be the last command in
the list because Inspect interprets all text following the FORMAT (or FMT) keyword
as the format list.
Using FORMAT with AS
When you use the FORMAT clause with the AS clause, the AS clause determines
how much data to display and the FORMAT clause determines how to format the
data.
Using FORMAT with FOR
When you use the FORMAT clause with the FOR clause, the FOR clause
determines how much data to display and the FORMAT clause determines how to
format the data.
Using FORMAT with TYPE
You cannot use the FORMAT clause with the TYPE clause. If the TYPE clause
precedes the FORMAT clause, the TYPE clause is ignored. If the TYPE clause
follows the FORMAT clause, it is assumed to be part of the FORMAT clause text
and will most likely yield an invalid FORMAT clause.
Examples
The variables used in the DISPLAY commands were declared as shown in this
FORTRAN source program fragment:
INTEGER i(8)
REAL x(8)
DOUBLE PRECISION d(8)
LOGICAL ERROR
CHARACTER*40 stringvar