$OCTALw. Informat

Converts octal data to character data.

Category: Character

Syntax

$OCTALw.

Syntax Description

w

specifies the width of the input field in bits. Because one digit of octal data represents three bits of binary information, increment the value of w by three for every column of octal data that $OCTALw. reads.

Default 3
Range 1–32767

Details

Eight bits of binary data represent the code for one digit of character data. Therefore, you need at least three digits of octal data to represent one digit of character data, which includes an extra bit. $OCTALw. treats every three digits of octal data as one digit of character data, ignoring the extra bit.
Use $OCTALw. to read octal representations of binary codes for unprintable characters. Enter an ASCII or EBCDIC equivalent for a particular character in octal notation. Then use $OCTALw. to convert it to its equivalent character value.
Use only the digits 0 through 7 in the input, with no embedded blanks. $OCTALw. ignores leading and trailing blanks.

Comparisons

The OCTALw. informat reads octal data and converts it to the numeric equivalents.

Example

input @1 name $octal9.;
Data Line
Result
----+----1
EBCDIC
ASCII
114
<
L