$HEXw. Format: UNIX

Converts character values to hexadecimal representation.
Category: Character
Alignment: left
Default: 2
Range: 1 to 32767
UNIX specifics: produces ASCII codes
See: $HEXw. Format in SAS Formats and Informats: Reference

Details

Under UNIX, the $HEXw. format produces hexadecimal representations of ASCII codes for characters, with each byte requiring two columns. Therefore, you need twice as many columns to output a value with the $HEXw. format.