COBOL Manual for TNS and TNS/R Programs

Language Elements and Expressions
HP COBOL Manual for TNS and TNS/R Programs522555-006
38-5
Literals
Figurative Constants
Table 38-4. Figurative Constants
Figurative Constant * What It Represents
ZERO
ZEROS
ZEROES
One or more of the character zero (0), depending on the context
SPACE
SPACES
One or more spaces, depending on the context
HIGH-VALUE
HIGH-VALUES
One or more of the character that has the highest position in the
program collating sequence, except in the SPECIAL-NAMES
paragraph, where it represents the character that has the
highest position in the ASCII character set (the 256th character,
which is all binary ones) or in the national character set (default
is hexadecimal FFFF)
LOW-VALUE
LOW-VALUES
One or more of the character that has the lowest position in the
program collating sequence, except in the SPECIAL-NAMES
paragraph, where it represents the character that has the lowest
position in the ASCII character set (the first character, the NUL,
which is all binary zeros) or in the national character set (default
is hexadecimal 0000)
QUOTE
QUOTES
One or more of the character quotation mark (")
You cannot use either of these words instead of quotation marks
to enclose a nonnumeric literal.
symbolic-character One or more of the character specified as the value of
symbolic-character in the SYMBOLIC CHARACTERS
clause of the SPECIAL-NAMES paragraph
ALL literal The value of literal must contain one or more of:
A nonnumeric literal
A national literal
A symbolic-character
One of the other reserved words previously defined as
figurative constants (except that you cannot precede an ALL
literal form of figurative constant with another ALL)
When literal is a nonnumeric literal or a national literal, this
form implies repetition of the literal’s value to the extent required
by the context. For the other cases, the word ALL is redundant
and is used for readability only.
* Singular and plural forms are equivalent and can be used interchangeably.