S370FZDw.d Informat

Reads zoned decimal data in IBM mainframe format.
Category: Numeric

Syntax

S370FZDw.d

Syntax Description

w
specifies the width of the input field.
Default:8
Range:1–32
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.
Default:0
Range:0–31

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

  • 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

Example

input @1 x s370fzd3.;   
Data Line 1
Result
----+----1
F1F2C3
123
F1F2D3
-123
1The 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.

See Also

Informats: