z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


HX—Show data in hexadecimal format

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The HX (hexadecimal) line command displays characters in a data set or member in hexadecimal format.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-HX--+---+---------------------------------------------------><
       '-n-'   

Read syntax diagramSkip visual syntax diagram
>>-HXX---------------------------------------------------------><

n
The number of lines to be displayed in hexadecimal format. If you do not type a number, or if the number you type is 1, only the line on which you type HX is displayed in hexadecimal format.

Description

To display characters on one or more lines in hexadecimal format:

  1. Type HX in the line command field of the source code line that contains the characters you want to display in hexadecimal format. If you also want to display characters in hexadecimal format on one or more lines that immediately follow this line, type a number greater than 1 after the HX command.
  2. Press Enter. The characters on the source code lines are displayed in hexadecimal format.

To display characters in a block of lines in hexadecimal format:

  1. Type HXX in the line command field of both the first and last source code lines that you want to display in hexadecimal format. You can scroll (or use FIND or LOCATE) between typing the first HXX and the second HXX, if necessary.
  2. Press Enter. The characters in the source code lines that contain the two HXX commands and in all of the source code lines between them are displayed in hexadecimal format.

When the file is not being displayed totally in hexadecimal format (that is, the HEX ON primary command is not in effect), records that have been marked by a HX or a HXX edit line command are displayed as a set of four lines, similar to the way records are displayed when the HEX ON primary command is used. The HX and HXX edit line commands act in a toggle manner to change the display of records. That is, if the record is already displayed in hexadecimal format due to an HX or HXX command, then issuing another HX or HXX command turns off the hexadecimal display for the record.

Note: The effect of any previous HX or HXX commands are canceled by the command, HEX OFF. HX is not available with FASTPATH panels such as ISREDDE.

Examples

Figure 1 shows how to use the HX command without any operands. To display a line in hexadecimal format, type HX in the line command field of the line you want to display.

Figure 1. Before the HX (display in hexadecimal format) line command
Screen dump.

When you press Enter, the editor converts the characters in the line to hexadecimal format. See Figure 2.

Figure 2. After the HX (display in hexadecimal format) line command
Screen dump.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014