Previous Page | Next Page

Informats

ROWw.d Informat



Reads a column-binary field down a card column.
Category: Column Binary

Syntax
Syntax Description
Details
Examples
See Also

Syntax

ROWw.d

Syntax Description

w

specifies the row where the field begins.

Range: 0-12
d

specifies the length in rows of the field.

Default: 1
Range: 1-25

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 ROWw.d informat assigns the relative position of the punch in the field to a numeric variable.

If the field that you specify has more than one punch, then ROWw.d assigns the variable a missing value and sets the automatic variable _ERROR_ to 1. If the field has no punches, then ROWw.d assigns the variable a missing value.

ROWw.d can read fields across columns, continuing with row 12 of the new column and going down through the rest of the rows. After ROWw.d reads a field, the pointer moves to the next row.


Examples

input x row5.3 
input x row7.1 
input x row5.2 
input x row3.5 

Data Line* Results
----+----1

00

04
3

1

.

5
* The data line is a hexadecimal representation of the column binary. The "virtual" punch card column for the example data has row 7 punched. The binary representation is 0000 0000 0000 0100.


See Also

Informats:

$CBw. Informat

CBw.d Informat

PUNCH.d Informat

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

Previous Page | Next Page | Top of Page