Reads zoned decimal data in IBM mainframe format.
-
w
-
specifies the width of the input field.
-
d
-
specifies the power of 10 by which to divide
the value. If the data contain decimal points, the d
value is ignored. This argument is optional.
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.
-
If you use SAS on an IBM mainframe,
S370FZDw.d and ZDw.d are identical.
-
The
following table shows the equivalent zoned
decimal notation for several programming languages:
Language |
Zoned Decimal Notation |
SAS |
S370FZD3. |
PL/I |
PICTURE'99T' |
COBOL |
PIC S9(3) DISPLAY |
assembler |
ZL3 |
input @1 x s370fzd3.;
Data Line* |
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 characters correspond to one byte of binary
data, and each byte corresponds to one column of the input field. |
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.