COBOL Manual for TNS/E Programs (H06.03+)
Language Elements
HP COBOL Manual for TNS/E Programs—520347-003
3-3
Punctuation Characters
Except in nonnumeric literals, the compiler handles lowercase letters as equivalent to
the corresponding uppercase letters.
You can use characters that are not in the COBOL character set in your COBOL
source programs in these cases:
•
A character other than the dollar sign ($) can represent the currency symbol in
PICTURE clauses (see SPECIAL-NAMES Paragraph)
•
A question mark (?) precedes a compiler directive
(see Indicator Area)
•
Comment-entries, comment lines, and nonnumeric literals can contain any
characters in the computer’s character set (but some control characters adversely
affect the compiler listing)
Punctuation Characters
Punctuation characters belong to the COBOL character set and are listed in Table 3-2.
In a COBOL source program, you can use a punctuation character in these contexts:
•
Separators
•
Comments
•
Nonnumeric and National Literals
•
Numeric Literals and PICTURE Character-Strings
) Right parenthesis
= Equal sign
Table 3-3. Special Characters
Character Name of Character
+Plus sign
- Hyphen or minus sign
*Asterisk
/ Stroke or slash
$ Currency sign
> Greater than sign
< Less than sign
Table 3-2. Punctuation Characters (page 2 of 2)
Character Name of Character










