DISPLAY ITEM [ HP Transact Reference Manual ] MPE/iX 5.0 Documentation
HP Transact Reference Manual
DISPLAY ITEM
Displays the value of a single item, several items, or all items in the
data register.
Syntax
{DISPLAY ITEM} [item_name_list]
{DIT }
{item1[(subscript)]:item2 [(subscript)] }
item_name_list = {item1[(subscript)][,...itemN[(subscript)]]}
{item1[(subscript)]: }
{:item1[(subscript)] }
Parameters
item1, The names of the valid items in the data register that
are to be displayed.
item2, These items can be child items.
itemN
subscript A list of numerical values of the form val1,
val2,...valn used to select a particular element in an
array. If this parameter is omitted and the item being
displayed is an array, the entire array is displayed.
If this parameter is specified and the item is not an
array, an error message is displayed.
Discussion
This command allows you to display either selected items in the data
register or all the items in the data register. The item values are
converted to their ASCII equivalents prior to display. If an item cannot
be successfully converted to ASCII or an overflow occurs, the item value
appears as #s.
If an item cannot be displayed entirely on one line, it is formatted for
multiple lines. If the items being displayed cannot fit on a single
screen, a CONTINUE(Y/N)? prompt is displayed at the page breaks. If an
item name is not specified, all the items in the data register are
displayed.
NOTE Child items cannot be used when specifying a range of items to
display.
Examples
The following examples display a single item, selected items, and all
items in the data register.
TRANDEBUG> DISPLAY ITEM item1
ITEM1: ABCD
TRANDEBUG> DISPLAY ITEM item1:item3
ITEM1: ABCD
ITEM3: 56.78
TRANDEBUG> DISPLAY ITEM
ITEM1: ABCD
ITEM2: 1234
ITEM3: 56.78
ITEM4: XYZ
MPE/iX 5.0 Documentation