Reads whether a row of column-binary data is punched.
-
d
-
specifies which row in a card column to
read.
Column-binary data storage compresses data so that more
than 80 items of data can be stored on a single "virtual" punch
card.
This informat assigns the value 1 to the variable if
row d of the current card column is punched,
or 0 if row d of the current card column is not
punched. After PUNCH.d reads a field, the pointer
does not advance to the next column.
Data Line* |
SAS Statement |
Results |
12-7-8
|
input x punch.12
|
1
|
|
input x punch.11
|
0
|
|
input x punch0.7
|
1
|
*
The data line is "virtual" punched card
code. The punch card column for the example data has row 12, row 7, and row
8 punched. |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.