Data Definition Language (DDL) Reference Manual
Definition Attributes
Data Definition Language (DDL) Reference Manual—529431-004
6-52
Specifying TYPE data-type
ENUM enum-name
specifies the enumeration definition that contains the values to use for
the BIT item. The enumeration definition must be in the open
dictionary, and the enumeration values in the enumeration definition
must fit within the number of bits specified for the item, excluding any
sign bit.
def-name
is the name of a previously defined data structure.
*
refers to a previously defined data structure that has the same name as the
referring data structure.
In the TYPE clause, you can declare the type and size of an object, group, or field by
one of these methods:
•
Specifying TYPE data-type on page 6-52
•
Specifying TYPE def-name on page 6-67
•
Specifying TYPE * on page 6-68
Specifying TYPE data-type
data-type is one of:
•
BINARY on page 6-53
•
ENUM on page 6-54
•
LOGICAL on page 6-55
•
BIT on page 6-55
•
The SQL data types in the SQL/MP Reference Manual or SQL/MX Reference
Manual
Example 6-43. TYPE data-type Clauses
DEF type-clause-example.
02 chr TYPE CHARACTER 8. ! 8 alphanumeric characters
02 bin-16 TYPE BINARY 16. ! Signed integer
02 bin-16-u TYPE BINARY 16 UNSIGNED. ! Signed integer
02 bin-16-s TYPE BINARY 16,2 ! Signed integer, 2 decimal positions
02 bin-32 TYPE BINARY 32. ! Signed double integer
02 bin-64 TYPE BINARY 64,16 ! Signed 4-word integer, 16 dec. positions
02 flt TYPE FLOAT. ! Signed 32-byte real number
02 flt-64 TYPE FLOAT 64. ! Signed 64-byte real number
02 cmplx TYPE COMPLEX. ! 8-byte complex binary number
02 logicl TYPE LOGICAL. ! 2-byte logical item
END