Named Constants
Data Definition Language (DDL) Reference Manual — 426798-002
4 -2
CONSTANT Statement
"string"
specifies the value of a string constant; string is a string of from 1 to 130 ASCII
characters.
national-literal
is a national literal of the following form:
{ N } { "2-byte-character..." }
{ n } { ‘2-byte-character...’ }
Each
2-byte-character
must be 2 bytes in length internally; the first byte
cannot contain the binary equivalent of a quotation mark. You cannot separate the
N or n and the opening quotation mark with a space or a line break.
existing-constant
is the name of an existing constant whose value is consistent with the type of the
constant being defined.
"version"
specifies the value of a version constant; version is an ASCII string with three
characters of the form ann, in which a is any letter of the alphabet and nn is a 2-
digit number. DDL treats the letter as uppercase whether you specify it as
uppercase or lowercase. DDL translates the version string into a version number.
LN clause
specifies the locale associated with a value. See
LN Clause
on page 6-14 for
complete information.
TYPE type
specifies the type of a numeric constant; type is one of the following types:
BINARY [ 16 ] [ UNSIGNED ]
BINARY 32 [ UNSIGNED ]
BINARY 64
If the TYPE clause is omitted, the type is BINARY 16.
You can put the TYPE clause either before or after the VALUE clause.
You cannot use the TYPE clause when the VALUE clause includes "
string
" or
"
version
".