Chapter Contents

Previous

Next
PKw.d

PKw.d



Writes data in unsigned packed decimal format

Category: Numeric
Alignment: left


Syntax
Syntax Description
Details
Comparisons
Examples

Syntax

PKw.d

Syntax Description

w
specifies the width of the output field.
Default: 1
Range: 1-16

d
optionally specifies to multiply the number by 10d.


Details

Each byte of unsigned packed decimal data contains two digits.


Comparisons

The PKw.d format is similar to the PDw.d format except that PKw.d does not write the sign in the low-order byte.


Examples

y=put(x,pk4.); 
put y $hex8.;

Values Results*

----+----1
128
00000128
*The result is a hexadecimal representation of a four-byte number written in packed decimal format. Each byte occupies one column of the output field.


Chapter Contents

Previous

Next

Top of Page

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