Previous Page | Next Page

Informats

PUNCH.d Informat



Reads whether a row of column-binary data is punched.
Category: Column Binary

Syntax
Syntax Description
Details
Examples
See Also

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.


Examples

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.


See Also

Informats:

$CBw. Informat

CBw.d Informat

ROWw.d Informat

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

Previous Page | Next Page | Top of Page