$ASCIIw. Informat

Converts ASCII character data to native format.

Category: Character

Syntax

$ASCIIw.

Syntax Description

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

Details

If ASCII is the native format, no conversion occurs.

Comparisons

  • 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.

Example

input @1 name $ascii3.;
Data Line
Result 1
----+----1
EBCDIC
ASCII
abc
818283
616263
ABC
C1C2C3
414243
();
4D5D5E
28293B
1The 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.