Previous Page | Next Page

Informats

ZDw.d Informat



Reads zoned decimal data.
Category: Numeric
See: ZDw.d Informat under Windows UNIX OpenVMS z/OS

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

specifies the power of 10 by which to divide the value. This argument is optional.

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 personal computer. 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 Line* 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 Informat

ZDVw.d Informat

Previous Page | Next Page | Top of Page