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