Converts native format character data to ASCII representation.
| Category: |
Character
|
| Alignment: |
left
|
-
w
-
specifies the width of the output field.
| Default: |
1 |
| Range: |
1-32767 |
If ASCII is the native format, no conversion
occurs.
-
On EBCDIC systems, $ASCIIw.
converts EBCDIC character data to ASCIIw.
-
On all other systems, $ASCIIw.
behaves like the $CHARw. format.
put x $ascii3.;
|
Value of x |
Results |
abc
|
616263
|
ABC
|
414243
|
();
|
28293B
|
| *
The results are hexadecimal representations of ASCII
codes for characters. Each two hexadecimal characters correspond
to one byte of binary data, and each byte corresponds to one character. |
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.