Chapter Contents

Previous

Next
ZDw.d

ZDw.d



Reads zoned decimal data

Category: Numeric


Syntax
Syntax Description
Details
Comparisons
Examples
See Also

Syntax

ZDw.d

Syntax Description

w
specifies the width of the input field.
Default: 1
Range: 1-32

d
optionally specifies the power of 10 by which to divide the value.
Range: 1-31


Details

The ZDw.d informat reads zoned decimal data in which every digit requires one byte and in which the last byte contains the value's sign along with the last digit.

Note:   Different operating environments store zoned decimal values in different ways. However, ZDw.d reads zoned decimal values with consistent results if the values are created in the same type of operating environment that you use to run SAS.  [cautionend]

You can enter positive values in zoned decimal format from a terminal. Some keying devices enable you to enter negative values by overstriking the last digit with a minus sign.


Comparisons


Examples

input @1 x zd4.; 

Data Lines* Results
----+----1

F0F1F2C8
128
*The data line contains a hexadecimal representation of a binary number that is stored in zoned decimal format on an IBM mainframe computer system. Each byte occupies one column of the input field.


See Also

Informats:

w.d
ZDVw.d


Chapter Contents

Previous

Next

Top of Page

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