EasyManuals Logo

HP StorageWorks P9000 User Manual

HP StorageWorks P9000
322 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #63 background imageLoading...
Page #63 background image
7 Numeric Conversion
This chapter describes the considerations involved in performing numeric value conversions.
• MTO (Mainframe To Open System) Numeric Value Conversion Overview, page 63
• Packed Decimal Conversion (NUM:OPA1), page 63
• Zoned Decimal Conversion (NUM:OPA2), page 65
MTO (Mainframe To Open System) Numeric Value Conversion
Overview
Numeric values are stored in Mainframe systems as packed decimal or zoned decimal. The Data
Exchange Code Converter provides the following types of numeric value conversion for each field
data type, as shown in the following table.
Table 15 Types of Numeric Value Conversion
Field Type and Conversion
Mode
Numeric Value ConversionInput Field Data Type
NUM:OPA1
Packed decimal data converted
to character data
Packed decimal
NUM:OPA2
Zoned decimal data converted to
character data
Zoned decimal
Numeric value conversion output is right-aligned. If an output field is not large enough for the converted
value (the effective length of the converted field is longer than the output field length), an error is
generated (error code: 757).
Conversely, if there is extra space in the output field (the effective length of the converted value is
shorter than the output field length), the extra space preceding the effective field data is padded with
0 or a blank space(s).
Packed Decimal Conversion (NUM:OPA1)
Packed decimal conversion divides 1 byte of numeric (packed decimal) data in the specified field
into the top 4 bits and the bottom 4 bits, and then converts each group into 1 byte of character data,
resulting in a total of 2 bytes of character data. If the 1 byte of packed decimal data is out of range
(top/bottom 4 bits: X'A' to X'F'), an incorrect data error is generated (error code: 760). Packed
decimal conversion is performed according to the options specified in the Edit Option file.
Sign
The bottom 4 bits in the last byte of packed decimal data contain the sign bits. Sign bits are recognized
as follows:
P9000 Data Exchange Code Converter User Guide 63

Table of Contents

Other manuals for HP StorageWorks P9000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP StorageWorks P9000 and is the answer not in the manual?

HP StorageWorks P9000 Specifications

General IconGeneral
BrandHP
ModelStorageWorks P9000
CategoryStorage
LanguageEnglish

Related product manuals