$HEXw. Format: Windows

Converts character values to hexadecimal values.
Category: character
Alignment: left
Windows specifics: ASCII character–encoding system
See: $HEXw.

Syntax

$HEXw.

Required Argument

w
specifies the width of the output field.
Default:2
Range:1–32767

Details

The $HEXw. format is like the HEXw. format in that it converts a character value to hexadecimal notation, with each byte requiring two columns. Under Windows, the $HEXw. format produces hexadecimal representations of ASCII codes for characters.

Example

The following example uses the input value of 123.
data  _null_;
x='123';
put x=$hex8.;
run;
x=313233

See Also