PTrace Reference Manual

Using PTrace
PTrace Reference Manual526393-001
2-11
ASCII-to-EBCDIC Translation
Using the NEXT Command to Start Reading From the Next
Record
The NEXT command starts reading at the next record and formats and displays the
specified number of records that match the selection criteria. You can specify a
timestamp, and PTrace will display only records generated after that time. The function
keys, F1 through F16, can be used as substitutes for the NEXT command. See
Table 3-1 on page 3-2 for more information.
Using the RECORD Command to Specify a Range of
Records
The RECORD command allows you to specify, by record number, a range of records
to be examined.
ASCII-to-EBCDIC Translation
The EBCDIC, TRANSLATE, and SETTRANSLATE commands control how PTrace
translates and displays trace record data. Subsystems that do not translate data do not
implement these commands.
For most subsystems, ASCII line data is recorded in an ASCII trace file and displayed
on an ASCII terminal. EBCDIC and TRANSLATE are set to OFF.
Table 2-2 shows some of the variations possible with PTrace:
If EBCDIC line data is recorded in a trace file, you must turn on the EBCDIC flag to
examine the data in its original EBCDIC form. PTrace converts the data according to
the default ASCII-to-EBCDIC table or according to the table you have specified with
the SETTRANSLATE command. See Appendix D, ASCII/EBCDIC Codes Translation
Table, for the default table.
If trace data is in EBCDIC and you want PTrace to display ASCII, you do not need to
use any PTrace options. PTrace automatically uses the HP standard EBCDIC-to-ASCII
translation table to format the data for an ASCII display.
If trace data is recorded in ASCII and you want PTrace to display in EBCDIC, you must
turn on the EBCDIC flag.
Table 2-2. ASCII/EBCDIC Variations Available With PTrace
Data Terminal Display PTrace Option
ASCII ASCII None
EBCDIC ASCII None
EBCDIC EBCDIC EBCDIC ON
ASCII EBCDIC EBCDIC ON
ASCII/EBCDIC EBCDIC (modified) SETTRANSLATE, TRANSLATE ON