Converts ASCII character data to native format.
-
w
-
specifies the width of the input field.
Default: |
1 if the length of the
variable is undefined. Otherwise, the default is the length of the variable. |
Range: |
1-32767 |
If ASCII is the native format, no conversion
occurs.
-
On an IBM mainframe system, $ASCIIw. converts ASCII data to
EBCDIC.
-
On all other systems, $ASCIIw.
behaves like the $CHARw. informat except that
the default length is different.
input @1 name $ascii3.;
Data Line |
Results* |
----+----1
|
EBCDIC |
ASCII |
abc
|
818283
|
616263
|
ABC
|
C1C2C3
|
414243
|
();
|
4D5D5E
|
28293B
|
*
The results are hexadecimal representations of codes
for characters. Each two hexadecimal characters correspond to one byte of
binary data, and each byte corresponds to one character value. |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.