DDL Language Elements
Data Definition Language (DDL) Reference Manual — 426798-002
2 -5
DDL Numbers
charset
is a string forming a HP internal character set name.
For example, the locale name
da_DK.ISO8859-1
would be specified as
LN
"
da_DK.ISO8859-1
" and would consist of the
language-code
da
, the
territory-code DK
, and the
charset
value
ISO8859-1
.
If there is more than one literal specified with the same locale name for a text item,
an error occurs. The literal with the duplicate locale name is ignored.
Locale names are supported in CONSTANT definitions, AS and HEADING
clauses, the 88 clause, and the VALUE clause. See
LN Clause
on page 6-14 for
the names of supported locales.
DDL Numbers
The DDL compiler recognizes either decimal or octal numeric values. Octal numbers
are denoted by a percent sign (for example, %377). An unsigned number is positive by
default; you can also specify a positive number with a plus (+) sign. You specify a
negative number with a minus (-) sign. Any plus or minus sign must immediately
precede the number. The following examples illustrate this notation:
DDL Strings
A DDL string is any combination of ASCII or national characters within quotation
marks. The maximum length of a DDL string is 130 ASCII characters or 64 national
characters.
If you use the COLUMNS command to specify the number of significant columns in an
input line, the maximum string length is constrained by that number, columns, as
follows:
The maximum number of ASCII characters is the input line length minus 2 characters
for the quotation marks. Because each national character requires 2 bytes, the
maximum number of national characters is half of the following: the input line length
minus 1 character for the letter N that precedes the string, 2 characters for the
quotation marks, and 1 character to make the string an even number of bytes.
Maximum ASCII characters in a string
columns - 2
Maximum national characters in a string
(columns - 4)/2
39
-2
+8
-%10
+%17
%100
Positive decimal value
Negetive decimal value
Positive decimal value
Negetive octal value (decimal -8)
Positive octal value (decimal 15)
Positive octal value (decimal 64)
VST20A.vsd
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...