The HEX macro command sets hexadecimal mode, which determines whether data appears in hexadecimal format.
The HEX assignment statement either sets hexadecimal mode or retrieves the current values of hexadecimal mode, and places them in variables.
Macro command syntax .-VERT-. >>-ISREDIT--HEX--+-ON--+------+-+------------------------------>< | '-DATA-' | +-VERT---------+ +-DATA---------+ '-OFF----------'
Assignment statement syntax >>-ISREDIT--(var1,var2)-- = --HEX------------------------------><
.-VERT-. >>-ISREDIT--HEX-- = --+-ON--+------+-+------------------------->< | '-DATA-' | +-VERT---------+ +-DATA---------+ '-OFF----------'
The HEX macro command and assignment statement determines whether the editor displays hexadecimal representation in a vertical or data string format.
When the editor is operating in hexadecimal mode, three lines are displayed for each source line. The first line shows the data in standard character form, while the next two lines show the same data in hexadecimal representation.
Besides normal editing on the first of the three lines, you can change any characters by typing over the hexadecimal representations.
You can also use the FIND, CHANGE, and EXCLUDE commands to find, change, or exclude invalid characters or any specific hexadecimal character, regardless of the setting of hexadecimal mode. See the discussion of picture strings and hexadecimal strings under Finding, seeking, changing, and excluding data.
ISREDIT (HEXMODE) = HEX
IF &HEXMODE = ON THEN -
...
ISREDIT HEX OFF