HEX

EXEC Interpreter

hex.helpexc.txt
&HEX STATEMENT                                                   EXEC statement

Use the &HEX control statement to initiate or inhibit hexadecimal conversion in
an EXEC procedure.  The format of the &HEX control statement is:
+-----------+-----------------------------------------------------------------+
| &HEX      | [OFF|ON]                                                        |
+-----------+-----------------------------------------------------------------+
where:

OFF      indicates that no hexadecimal conversion is to be done by EXEC.  OFF
         is the default.

ON       indicates that tokens beginning with the string X' are to be
         interpreted as hexadecimal notation.


Usage Notes:

1.  You should use the &HEX control statement when you want to display a
    hexadecimal value.  For example:
       &HEX ON
       &TYPE X'40
       &HEX
    results in the display:
       28

    If you did not use the &HEX ON control statement, the &TYPE statement would
    result in the display:
       X'40

2.  To convert a hexadecimal value to its decimal equivalent, use an assignment
    statement.