HP 3000 Manuals

Data Item Types [ HP Transact Reference Manual ] MPE/iX 5.0 Documentation


HP Transact Reference Manual

Data Item Types 

Data items defined in a DEFINE(ITEM) statement or through Dictionary/V or
the System Dictionary can be one of ten types.  Table 3-1 lists the ten
types of data items and their corresponding DEFINE(ITEM) code.  You can
specify that values must be positive by following the type with a plus
sign(+).  Positive-only values never require an extra character to
display the sign.

          Table 3-1.  Transact Data Item Types 

-------------------------------------------------------------------------------
|                                                  |                          |
|                                                  |                          |
|                    Item Type                     |    DEFINE(ITEM) Code     |
|                                                  |                          |
|                                                  |                          |
-------------------------------------------------------------------------------
|                                                  |                          |
|  Alphanumeric string                             |            X             |
|                                                  |                          |
|  Uppercase alphanumeric string                   |            U             |
|                                                  |                          |
|  Numeric ASCII string (leading zeroes stripped), |            9             |
| positive only                                    |                          |
|                                                  |                          |
|  Integer number                                  |            I             |
|                                                  |                          |
|  Integer number (COBOL comp)                     |            J             |
|                                                  |                          |
|  Zoned decimal (COBOL format)                    |            Z             |
|                                                  |                          |
|  Packed decimal (COBOL comp-3)                   |            P             |
|                                                  |                          |
|  Logical value (absolute binary)                 |            K             |
|                                                  |                          |
|  Real, floating point, commercial notation       |            R             |
|                                                  |                          |
|  Real, floating point, scientific notation       |            E             |
|                                                  |                          |
-------------------------------------------------------------------------------



MPE/iX 5.0 Documentation