$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, and 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