Chapter Contents

Previous

Next
PKw.d

PKw.d



Reads unsigned packed decimal data

Category: Numeric


Syntax
Syntax Description
Details
Comparisons
Examples

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
optionally specifies the power of 10 by which to divide the value.
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.


Examples

input @1 x pk3.; 

Data Lines* 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.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.