PKw.d Informat

Reads unsigned packed decimal data.
Category: Numeric

Syntax

PKw.d

Syntax Description

w
specifies the number of bytes of unsigned packed decimal data, each of which contains two digits.
Default:1
Range:1–16
d
specifies the power of 10 by which to divide the value. This argument is optional.
Range:0–10

Details

Each byte of unsigned packed decimal data contains two digits.

Comparisons

The PKw.d informat is the same as the PDw.d informat, except that PKw.d treats the sign half of the field's last byte as part of the value, not as the sign of the value.

Example

input @1 x pk3.; 
Data Line 1
Result
----+----1
001234
1234
1The data line is a hexadecimal representation of a binary number stored in unsigned packed decimal form. Each byte occupies one column of the input field.