4 ms·
I think you may be mixing things up a bit. Strings can be concatenated using either double pipes || or just no operator at all, E.G. 'String'FOO will conca
by arexxbifs 4y ago
I think you may be mixing things up a bit.
Strings can be concatenated using either double pipes || or just no operator at all, E.G.
'String'FOO
will concatenate the 'String' literal and the FOO variable. Writing
'String' FOO
instead will put a literal space between the concatenated values. Hence, the || is useful for concatenating two variables:
FOO = BAR||BAZ
The dot is used for denoting compound variables which, together with the INTERPRET statement, is what was really novel about Rexx IMHO: https://datagubbe.se/rexxtut/ https://datagubbe.se/rexxtut/
- karmakaze 4y agoOh that's right. [I think the dot is from the bit of PHP that I did, doh!]
- flaviobsb 4y agoCaveat, the 'no operator' concatenation strips extra spaces, E.G. 'FOO' 'FOO' Results in 'FOO FOO' The compound variables are really useful, they allow me to create hash like structures in the Mainframe.
- arexxbifs 4y ago> Caveat, the 'no operator' concatenation strips extra spaces I assume you mean Rexx adds an extra space if whitespace is added between the values when concatenating them. I addressed this behavior (though perhaps a bit unclearly) in my original comment.