Nonstop Database, HiRDB Version 9 System Operation Guide
The following table shows the specification of the sign portion of signed packed format data in HiRDB.
Table 13-45 Specification of the sign portion of the signed packed format data
Sign portion | Meaning |
---|---|
X'C' | Indicates a positive value. |
X'D' | Indicates a negative value. |
X'F' | Indicates a positive value. |
When the facility for conversion to a decimal signed normalized number is used, the sign portion of signed packed format data is converted at the time of data input according to the rules described in Table 13-46 Rules for converting the sign portion of the signed packed format data (for non-0 data) and Table 13-47 Rules for converting the sign portion of the signed packed format data (for 0 data). This conversion of the sign portion is called normalization of the sign portion. Once the sign portion is normalized, +0 and -0 can be handled as the same value.
Table 13-46 Rules for converting the sign portion of the signed packed format data (for non-0 data)
Sign portion of embedded variable data | Without normalization | With normalization |
---|---|---|
X'A' | Error | Converted to X'C' |
X'B' | Error | Converted to X'D' |
X'C' | No conversion | No conversion |
X'D' | No conversion | No conversion |
X'E' | Error | Converted to X'C' |
X'F' | No conversion | Converted to X'C' |
X'0' to X'9' | Error | Error |
Table 13-47 Rules for converting the sign portion of the signed packed format data (for 0 data)
Sign portion of 0 data | Without normalization | With normalization |
---|---|---|
X'A' | Error | Converted to X'C' |
X'B' | Error | |
X'C' | No conversion | |
X'D' | No conversion | |
X'E' | Error | |
X'F' | No conversion |
To use in HiRDB a UAP that specifies the sign portion in a different way, it might be desirable to use the facility for conversion to a decimal signed normalized number. This facility should be used only after checking carefully the sign conversion rules.
For example, when an XDM/RD or XDM/RD E2 UAP is moved to HiRDB, it might be appropriate to use the facility for conversion to a decimal signed normalized number, because XDM/RD and HiRDB specify the decimal signed portion differently.
To use the facility for conversion to a decimal signed normalized number, specify Y in the pd_dec_sign_normalize operand in the system common definition.
If possible, this operand should be specified when HiRDB is first installed. To normalize the signed portion while HiRDB is already being used, it is necessary to reload the data of tables for which the decimal type is defined.
All Rights Reserved. Copyright (C) 2011, 2015, Hitachi, Ltd.