Formats |
Category: | Character |
Alignment: | left |
See: | $HEXw. Format under Windows UNIX OpenVMS |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples |
Syntax |
$HEXw. |
specifies the width of the output field.
Details |
The $HEXw. format converts each character into two hexadecimal characters. Each blank counts as one character, including trailing blanks.
Comparisons |
The HEXw. format converts real binary numbers to their hexadecimal equivalent.
Examples |
put @5 name $hex4.;
Value of name | Results | |
---|---|---|
|
EBCDIC | ASCII |
----+----1 |
----+----1 |
|
AB |
C1C2 |
4142 |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.