Chapter Contents

Previous

Next
S370FZDw.d

S370FZDw.d



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
optionally specifies the power of 10 by which to divide the value. If the data contain decimal points, the d value is ignored.
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:

ZDw.d


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.