Previous Page | Next Page

Informats

S370FZDw.d Informat



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

Syntax
Syntax Description
Details
Comparisons
Examples
See Also

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

Language Zoned Decimal Notation
SAS S370FZD3.
PL/I PICTURE'99T'
COBOL PIC S9(3) DISPLAY
assembler ZL3


Examples

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.


See Also

Informat:

ZDw.d Informat

Previous Page | Next Page | Top of Page