Chapter Contents

Previous

Next
ZDB

ZDB



Reads zoned decimal data with blanks

Numeric
Width range: 0- 31
Default width: 1
Decimal range: none
CMS specifics: used on IBM 1410, 1401, and 1620


Syntax
Details
See Also

Syntax

ZDBw.d

w
specifies the field width of the input value, in bytes.

d
specifies a divisor for the input value. If the informat includes a d value, the input value is divided by 10d.


Details

The ZDB informat reads zoned decimal data that are produced in IBM 1410, 1401, and 1620 form, in which zeros are left blank rather than being written. Each digit is represented as an EBCDIC character as previously described for the ZD informat. The only differences are the way in which zeros are represented, and that the ZDB informat does not allow you to use a d value while ZD does. The ZDB informat treats EBCDIC blanks ('40'x) as zeros. (EBCDIC zeros are also read as zeros.) Like the ZD informat, the ZDB informat also uses the rightmost byte to represent both the least significant digit and the sign.

The table under ZD shows the convention that is used to store digits in zoned decimal format. The following table shows several examples of how the ZDB informat reads data.

Data Pattern Read Actual Numeric Value Informat Resulting Numeric Value
'40404040404040C1'x 1 zdb8. 1
'404040404040F1C0'x 10 zdb8. 10
'4040404040F140C0'x 100 zdb8. 100
'40404040F14040C0'x 1000 zdb8. 1000
'4040404040F1F2D3'x -123 zdb8. -123
'4040404040F1F2C3'x 123 zdb8. 123


See Also


Chapter Contents

Previous

Next

Top of Page

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