SAS Institute. The Power to Know

SAS(R) 9.2 Language Reference: Dictionary, Second Edition

Previous Page | Next Page

Formats

$ASCIIw. Format



Converts native format character data to ASCII representation.
Category: Character
Alignment: left

Syntax
Syntax Description
Details
Comparisons
Examples

Syntax

$ASCIIw.

Syntax Description

w

specifies the width of the output field.

Default: 1
Range: 1-32767

Details

If ASCII is the native format, no conversion occurs.


Comparisons

  • On EBCDIC systems, $ASCIIw. converts EBCDIC character data to ASCIIw.

  • On all other systems, $ASCIIw. behaves like the $CHARw. format.


Examples

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.

Previous Page | Next Page | Top of Page