Concatenation Operators

Concatenation operators combine two terms into one. The terms can be strings, variables, expressions, or constants. Concatenation can be significant in formatting output.

The operators that indicate how to join two terms are as follows:
Operator
Meaning
blank
Concatenates terms and places one blank between them. If more than one blank separates terms, this becomes a single blank. For example:
SAY true      blue          /* result is TRUE BLUE */
||
Concatenates terms with no blanks between them. For example:
(8 / 2)||(3 * 3)            /* result is 49  */
abuttal
Concatenates terms with no blanks between them. For example:
per_cent'%'                /* if per_cent = 50, result
                                is 50%  */
You can use abuttal only with terms that are of different types, such as a literal string and a symbol, or when only a comment separates two terms.

Reference Reference

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/rvse018.html