NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
C-98
Conversion of DDL Elementary Items
DEFAULT "default-string"
DEFAULT "default-character-repeated"
default-string specifies a default value for the column. If the default-
string value specified in the DDL VALUE IS clause is longer than eight bytes,
the value is truncated to eight bytes and a warning is displayed.
default-character-repeated specifies either a single-byte character (for
PIC X, PIC A, or TYPE CHARACTER fields) or a double-byte character (for PIC
N fields) that is repeated to make a total of eight bytes. If more than one character is
specified, only the first character is repeated.
If the CHARACTER option or the NATIONAL option is specified, the VALUE IS
clauses are converted as follows:
DEFAULT _char-set-name "default-string"
DEFAULT _char-set-name "default-character-repeated"
character-set-name specifies the character set designated by either the
CHARACTER or NATIONAL option in the CONVERT command.
If the NATIONAL DEFAULT option is specified, the PIC N VALUE IS clauses are
converted as follows:
DEFAULT N"default-string"
DEFAULT N"default-character-repeated"
CONVERT ignores the following clauses:
Level-66 RENAMES clauses
Level-88 CONDITION-NAME clauses
DISPLAY clauses
MUST BE clauses
Conversion of DDL Elementary Items
CONVERT converts each elementary field item in the record definition to a column
definition. The table that is created as a result of the conversion can contain at most 450
columns.
CONVERT uses the name of a DDL field as the name for the corresponding column but
replaces any hyphens (-) in the name with underscores (_).
If the data type of a DDL field is equivalent to an SQL data type, the column is assigned
the equivalent data type. If the data type is not equivalent to any SQL data type, the
column is assigned a compatible data type, if possible. If there is no compatible data
type, the column specification becomes a comment, and a warning is appended.
DDL fields of various data types are converted as shown in the following tables.