HP DDL D40 Reference Manual page 146

Data definition language
Table of Contents

Advertisement

Definition Attributes
For COBOL, type ENUM is translated into a NATIVE-2 item followed by level
88 items for the level 89 clauses.
For FORTRAN, type ENUM is unsupported, and DDL generates an
INTEGER*2 followed by comments containing the level 89 items.
For Pascal, type ENUM is translated into constants followed by a type
declaration of an INT16 item. When a type ENUM item is an elementary item of
a group, DDL translates the ENUM item into an INT16 item and the level 89
clauses into constants preceding the group definition.
For TACL, type ENUM is translated into an ENUM with the level 89 items
preceding the ENUM as TACL TEXT items.
For pTAL or TAL, type ENUM is translated into an INT with the level 89 items
preceding the INT as literals. If you do not want to use an INT for a single-field
definition, then use the NOTALALLOCATE command to generate the definition
as a TAL DEFINE. For information about the NOTALALLOCATE command,
see
TALALLOCATE Command
LOGICAL data types: for Pascal, type LOGICAL 1 is translated into BOOLEAN.
Types LOGICAL 2 and LOGICAL 4 are translated into INT16 and INT32,
respectively.
SQL data types:
SQL VARCHAR, SQL DATETIME, SQL DATE, SQL TIME, SQL TIMESTAMP,
and SQL INTERVAL are supported by NonStop™ SQL/MP, but are not
supported by the host languages (C, COBOL, FORTRAN, Pascal, pTAL, TACL,
and TAL). Therefore, the DDL compiler translates SQL data types into
equivalent host-language constructs,
the SQL data types and the equivalent constructs for each host language.
SQL VARCHAR data type:
SQL VARCHAR data cannot be right-justified by a JUSTIFIED clause.
The syntax for the SQL VARCHAR data type differs from the
corresponding SQL syntax. For DDL, you do not enclose length in
parentheses; for SQL you do use parentheses around length.
The maximum size of an SQL VARCHAR field depends on the use of the
field:
Data Definition Language (DDL) Reference Manual—426798-002
If an SQL VARCHAR field is used only in working storage (not in a
record), the maximum field length is 32,765 bytes.
on page 9-106.
Appendix C, DDL Data
6- 52
TYPE Clause
Translation, lists

Advertisement

Table of Contents
loading

Table of Contents