Managing Items and their Data Types [ DBChange Plus Technical Addendum for MPE/iX Release 4.0 ] MPE/iX 5.0 Documentation
DBChange Plus Technical Addendum for MPE/iX Release 4.0
Managing Items and their Data Types
You can use DBChange Plus to add items of type E to your TurboIMAGE/XL
databases. The item length for each item must be 2 or 4 halfwords and is
declared by using either E2 or E4.
You can also change existing items to type E. A no-conversion option is
available if your data is already stored in IEEE format, and you only
wish to change the data type to correctly reflect the format of your
data. You just specify the E data type with an optional exclamation
point (!E); only the type is changed and the length is translated into
halfwords. Refer to chapter 2 for more information on this option.
You can add items of type E or change existing items to type E with the
following existing commands which are fully described in chapters 2 and
3:
* ADD ITEM
* CHANGE ATTRIBUTES
* CHANGE ITEM
Data Conversion Rules
* For data to be converted to IEEE data format, the original type of
the data item must be I, J, K, or R. Other types (P, U, X, and Z)
cannot be converted and attempts to do so result in an error for
each command.
* The no-conversion option is only available with type E. It means
simply that the data is already stored in IEEE format, and only
the type needs to be changed. Any attempts to use this option
with other types result in an error.
* When using !E to convert the type to E without converting the
data, the original item length must be exactly equivalent to 2 or
4 halfwords (4 or 8 bytes). The original type is ignored, but the
length is changed to its equivalent in halfwords. If the original
length cannot be expressed exactly as 2 or 4 halfwords, an error
is returned.
* When !E is specified and the item length is increased or
decreased, the data is assumed to be in IEEE format for the
original length and is simply converted to IEEE format for the new
length.
MPE/iX 5.0 Documentation