Informats |
Category: | Numeric |
See: | ZDw.d Informat under Windows UNIX OpenVMS z/OS |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
ZDw.d |
specifies the width of the input field.
Default: | 1 |
Range: | 1-32 |
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.
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 |
Like the w.d informat, the ZDw.d informat reads data in which every digit requires one byte. Use ZDVw.d or ZDw.d to read zoned decimal data in which the last byte contains the last digit and the sign.
The ZDw.d informat functions like the ZDVw.d informat with one exception: ZDVw.d validates the input string and disallows invalid data.
The following table compares the zoned decimal informat with notation in several programming languages:
Language | Zoned Decimal Notation |
---|---|
SAS | ZD3. |
PL/I | PICTURE'99T' |
COBOL | DISPLAY PIC S 999 |
IBM assembler | ZL3 |
Examples |
input @1 x zd4.;
See Also |
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.