Previous Page | Next Page

Informats

$CBw. Informat



Reads standard character data from column-binary files.
Category: Column Binary

Syntax
Syntax Description
Details
Examples
See Also

Syntax

$CBw.


Syntax Description

w

specifies the width of the input field.

Default: none
Range: 1-32767

Details

Column-binary data storage compresses data so that more than 80 items of data can be stored on a single "virtual" punch card.

The $CBw. informat reads standard character data from column-binary files, with each card column represented in two bytes. The $CBw. informat translates the data into standard character codes. If the combinations are invalid punch codes, SAS returns blanks and sets the automatic variable _ERROR_ to 1.


Examples

input @1 name $cb2.;

Data Line* Results
----+----1 EBCDIC ASCII
200A
+
N
* The data line is a hexadecimal representation of the column binary. The "virtual" punch card column for the example data has row 12, row 6, and row 8 punched. The binary representation is 0010 0000 0000 1010.


See Also

Informats:

CBw.d Informat

PUNCH.d Informat

ROWw.d Informat

How to Read Column-Binary Data in SAS Language Reference: Concepts

Previous Page | Next Page | Top of Page