PUNCH.d Informat

Reads whether a row of column-binary data is punched.

Category: Column Binary

Syntax

PUNCH.d

Syntax Description

d

specifies which row in a card column to read.

Range 1–12

Details

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.

Example

Data Line 1
SAS Statement
Result
12-7-8
input x punch.12
1
input x punch.11
0
input x punch0.7
1
1The data line is “virtual” punched card code. The punch card column for the example data has row 12, row 7, and row 8 punched.

See Also

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