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.
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,
ROWw.d assigns the
variable a missing value and sets the automatic variable _ERROR_ to 1. If
the field has no punches, 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 Lines* |
Results |
----+----1
|
|
00
|
|
04
|
3
|
|
1
|
|
.
|
|
5
|
| *The data line is a hexadecimal representation of the
column binary. The punch card column for the example data has row 7 punched.
The binary representation is 0000 0000 0000 0100. |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.