Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
String concatenation z/OS TSO/E REXX Reference SA32-0972-00 |
|
The concatenation operators combine two strings to form one
string by appending the second string to the right-hand end of the
first string. The concatenation might occur with or without an intervening
blank. The concatenation operators are:
You can force concatenation without a blank by using the || operator. The abuttal operator is assumed between two terms that are not separated by another operator. This can occur when two terms are syntactically distinct, such as a literal string and a symbol, or when they are separated only by a comment. Examples: An example of syntactically distinct terms is: if Fred has the value 37.4, then Fred'%' evaluates to 37.4%. If the variable PETER has the value 1, then (Fred)(Peter) evaluates to 37.41. In EBCDIC, the two adjoining strings, one hexadecimal and one literal,
evaluate to ABCDE.In the case of:
there
is no abuttal operator implied, and the expression is not valid.
However,
results
in an abuttal, and evaluates to 37.40. |
Copyright IBM Corporation 1990, 2014
|