Chapter Contents |
Previous |
Next |
ZDw.d |
Category: | Numeric |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
ZDw.d |
Default: | 1 |
Range: | 1-32 |
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.
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 |
Language | Zoned Decimal Notation |
---|---|
SAS | ZD3. |
PL/I | PICTURE'99T' |
COBOL | DISPLAY PIC S 999 |
IBM 370 assembler | ZL3 |
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:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.