COBOL Manual for TNS and TNS/R Programs
Procedure Division
HP COBOL Manual for TNS and TNS/R Programs—522555-006
8-70
Concatenation Expressions
Table 8-20. Maximum Length of Result of Concatenation Expression
Class of Operands Length of Result
Alphanumeric 160 alphanumeric character positions
National 80 national character positions
A figurative constant occupies one character position.
Table 8-21. Class of Result of Concatenation Expression
Number of Operands That
Are Figurative Constants Class of Result
0 Same class as the operands
(neither of which is a figurative constant)
1 Same class as the other operand
(which is not a figurative constant)
2 Alphanumeric
Example 8-15. Concatenation Expressions
"A zero-terminated string" & X"0"
"Another way of getting a zero-terminated string" & LOW-VALUE
"A string terminated by the zero digit" & ZERO
BLANK & BLANK & "Two leading blanks in the result"
"The symbolic constant" & COPYRIGHT & "is defined in SPECIAL-NAMES paragraph"