Reads a column-binary field down a card column.
-
w
-
specifies the row where the field begins.
-
d
-
specifies the length in rows of the field.
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.
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. |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.