Displaying HEX value

Hi Forum-mates,

I tried to look up on the docs but couldn’t find. I want to know how to display a HEX value of a variable in natural code.

cheers
Vallish

Use the hex edit mask:

DEFINE DATA LOCAL
1 #A     (A8)
END-DEFINE
*
INPUT #A
*
DISPLAY #A (EM=HHHHHHHH)
*
END

Example is available in ’ Natural - Programming guide’ and the program name is EDITMX03.

And in the example library SYSEXPG

Thank you all .