Data Definition Language (DDL) Reference Manual

Definition Attributes
Data Definition Language (DDL) Reference Manual529431-004
6-49
TYPE
TYPE
The TYPE clause specifies the data type and size of a data structure, either explicitly
or by referring to a previously defined data structure.
data-type
explicitly declares the data type of the data structure:
{ CHARACTER length }
{ }
{ BINARY { 8 } [ UNSIGNED ] }
{ { [ 16 [ , scale ] ] } }
{ { 32 [ , scale ] } }
{ { 64 [ , scale ] } }
{ }
{ FLOAT { [ 32 ] } }
{ { 64 } }
{ }
{ COMPLEX }
{ }
{ LOGICAL { 1 } }
{ { [ 2 ] } }
{ { 4 } }
{ }
{ ENUM }
{ }
{ SQL-data-type }
{ }
{ BIT bit-length [ UNSIGNED ] [ ENUM enum-name ] }
CHARACTER length
represents a character string of length characters. The maximum values
of length are:
TYPE { data-type | def-name | * }
Language Maximum Value Number of Characters
FORTRAN 255 bytes 255 ASCII characters or
127 national characters
TACL 5,000 bytes for an entire structure 5,000 ASCII characters or
2,500 national characters
COBOL
pTAL
TAL
Available address space, or, for part of a record, the record
length