Reads unsigned packed decimal data.
-
w
-
specifies the number of bytes of unsigned
packed decimal data, each of which contains two digits.
-
d
-
specifies the power of 10 by which to divide
the value. This argument is optional.
Each byte of unsigned packed decimal data
contains two digits.
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.
input @1 x pk3.;
Data Line* |
Results |
----+----1
|
|
001234
|
1234
|
*
The 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. |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.