Table 6-3. Figurative Constants - HP DDL D40 Reference Manual

Data definition language
Table of Contents

Advertisement

Definition Attributes
figurative-constant
is a constant that the DDL compiler has prenamed and predefined. You need
not enclose the constant in quotation marks. Singular and plural forms are
equivalent in meaning. The figurative constants are listed in
page 6-17.

Table 6-3. Figurative Constants

Figurative Constant
LOW-VALUE
LOW-VALUES
HIGH-VALUE
HIGH-VALUES
QUOTE
QUOTES
SPACE
SPACES
ZERO
ZEROS
ZEROES
ALL literal
literal
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. Do not separate the
N (or n) and the opening quotation mark with a space or a line break.
The length of a national literal in a MUST BE clause must agree with the length
specified in the PICTURE clause for the national data item.
number
is one or more digits (0 to 9), an optional plus or minus sign, and an optional
decimal point. The value must not be enclosed in quotation marks.
symbolic-literal
is a literal that the DDL compiler has prenamed and predefined. DDL replaces
symbolic-literal with the appropriate literal for COBOL output. You can
Data Definition Language (DDL) Reference Manual—426798-002
Value
One or more of the lowest character in the ASCII or national
collating sequence
One or more of the highest character in the ASCII or
national collating sequence
One or more of the ASCII or national quotation mark
character
One or more of the ASCII or national space character
(blank)
The numeric value 0 or, depending on the context, one or
more of the ASCII or national zero character
A repeated literal; the literal can be an ASCII character
string, a national literal, or a figurative constant other than
ALL. When a figurative constant is used, the word ALL is
unnecessary.
6- 17
MUST BE Clause
Table 6-3
on

Advertisement

Table of Contents
loading

Table of Contents