HP StorageWorks P9000 Data Exchange Code Converter User Guide (T1620-96017, September 2010)

Decimal Point
A decimal point is inserted according to the number of decimal places specified in the Edit Option
file. When 0 is specified, no decimal point is inserted.
Figure 44 Conversion for Decimal Point = 3, Zero suppression and Trailing sign Specified
.
Figure 45 Conversion for Decimal Point = 0, No zero suppression and Unsigned Specified
.
All-space Fields
All-space fields that contain only spaces (all data is X'40') unconditionally generate a data error (error
code: 760).
0-only fields: Fields that contain only 0 are converted according to the All-space field option in the
Edit Option file. When the option to convert 0 in 0-only fields to 0 (TRAN_ALLSPACE_NORMAL) is
specified, 0 is converted to 0 as in normal numeric value conversions. When the option to convert 0
in 0-only fields to spaces (TRAN_ALLSPACE_ZERO) is specified, all 0's are converted to spaces (X'20'),
as shown in the following figure. The sign position, zero suppression, and the number of decimal
places specified in the Edit Option file, as well as the sign of the input data, are ignored.
Figure 46 Conversion of 0 in a 0-only Field to Spaces
.
Zoned Decimal Conversion (NUM:OPA2)
Zoned decimal conversion takes 1 byte of numeric (zoned decimal) data in the specified field and
converts the bottom 4 bits into 1 byte of character data. If the 1 byte of zoned decimal data is out of
range (bottom 4 bits: X'A to X'F), a data error is generated (error code: 760). Zoned decimal
conversion is performed according to the options specified in the Edit Option file.
Sign
The bottom 4 bits in the last byte of zoned decimal data contain the sign bits. Sign bits are recognized
as follows:
Sign bits indicating A, C, E, or F: plus
Sign bits indicating B or D: minus
Sign bits indicating a value other than above (0 through 9): wrong data (error code: 760)
P9000 Data Exchange Code Converter User Guide 65