$ASCIIw. Format

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

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.

Example

put x $ascii3.;
Value of x
Result1
abc
616263
ABC
414243
();
28293B
1The 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.