Native Inspect Manual (H06.04+)
Syntax of Native Inspect Commands
Native Inspect Manual—528122-005
4-56
print command
Alias: p
/format
is an optional count, format, and size specification.
expression
evaluates the expression and assigns its value to a variable.
In COBOL expressions, use COBOL operators, and in C and pTAL expressions,
use the standard C assignment operators, including +=, *=, and \=.
Considerations
•
Other functions of the print command (illustrated in Examples on page 4-57)
include:
•
To view an appropriately formatted SPI buffer, you must use Visual Inspect instead
of Native Inspect. Native Inspect does not support the formatting of SPI buffers.
print [ /format ] expression
Print Command Form
Function
print (cast-type) variable Displays a variable formatted as a specific type
(specified by a C/C++ cast expression)
print {struct} buffer Displays a buffer formatted as the specified
structure. Equivalent to the DISPLAY AS
command in Inspect.
print variable@elements Displays the specified number of instances of a
variable.
Example: print var@2
print array[index]@count Displays a range of array elements.
print file::variable print
function::variable
Displays a static variable in a specific file or
function
print var=exp Evaluates an expression and assigns the result
to a variable. The expression can be any valid
C expression. This command is equivalent to
this set command:
set variable var = exp










