Chapter Contents |
Previous |
Next |
S370FZDw.d |
Category: | Numeric |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
S370FZDw.d |
Default: | 8 |
Range: | 1-32 |
Range: | 0-10 |
Details |
Zoned decimal data are similar to standard decimal data in that every digit requires one byte. However, the value's sign is stored in the last byte, along with the last digit.
Use S370FZDw.d on other operating environments to read zoned decimal data from IBM mainframe files.
Comparisons |
Language | Zoned Decimal Notation |
---|---|
SAS | S370FZD3. |
PL/I | PICTURE'99T' |
COBOL | PIC S9(3) DISPLAY |
assembler | ZL3 |
Examples |
input @1 x s370fzd3.;
Data Lines* | Results |
---|---|
----+----1 |
|
F1F2C3 |
123 |
F1F2D3 |
-123 |
*The data line contains a hexadecimal representation of a binary number stored in zoned decimal format on an IBM mainframe operating environment. Each two hexadecimal digits correspond to one byte of binary data, and each byte corresponds to one column of the input field. |
See Also |
Informat:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.