Previous Page | Next Page

Informats under UNIX

PDw.d Informat: UNIX



Reads data that is stored in packed decimal format.
Category: Numeric
Width range: 1 to 16
Default width: 1
Decimal range: 0 to 31
UNIX specifics: data representation
See: PDw.d informat in SAS Language Reference: Dictionary

Details

Details

The PDw.d informat reads packed decimal data. Although it is usually impossible to type packed decimal data directly from a console, many programs write packed decimal data.

Each byte contains two digits in packed decimal data. The value's sign is the first byte. Because the entire first byte is used for the sign, you should specify at least a width of 2.

The PDw.d format writes missing numerical data as -0. When the PDw.d informat reads a value of -0, the result is a value of 0.

For more information, see Reading and Writing Binary Data in UNIX Environments.

Previous Page | Next Page | Top of Page