Chapter Contents

Previous

Next
$CBw.

$CBw.


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

The $CBw. informat reads standard character data from column-binary files, with each card column represented in 2 bytes, and it 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 Lines* Results

----+----1
EBCDIC ASCII

200A

+

N
*The data line is a hexadecimal representation of the column binary. The 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
PUNCH.d
ROWw.d

See the discussion on reading column-binary data in SAS Language Reference: Concepts.


Chapter Contents

Previous

Next

Top of Page

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.