Chapter Contents |
Previous |
Next |
BITSw.d |
Category: | Numeric |
Syntax | |
Syntax Description | |
Details | |
Examples |
Syntax |
BITSw.d |
Default: | 1 |
Range: | 1-64 |
Range: | 0-63 |
Details |
The BITSw.d informat extracts particular bits from an input stream and assigns the numeric equivalent of the extracted bit string to a variable. Together, the w and d values specify the location of the string you want to read.
This informat is useful for extracting data from system records that have many pieces of information packed into single bytes.
Examples |
input @1 value bits4.1;
Data Lines | Results* |
---|---|
----+----1----+ |
|
B |
8 |
*The EBCDIC binary code for a capital B is 11000010, and the ASCII binary code is 01000010. |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.