Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Concatenating strings in a BTM

Oct
73
1
How do I concatenate two strings in a BTM without spaces between them. Concatenating in REXX is so easy, but for the life of me I don't know how to accomplish that in a BTM.

I want to write filenames, but changing the final letter based on a variable. There has to be a way, but I'm too stupid to figure it out. Would somebody give me a hint? :)
 
Code:
set foo=abc
set bar=xyz
echo %foo%%bar%
echo %[foo]%[bar]
 
Thanks for the prompt response and the correct answer. I should have been able to figure that out myself, but I didn't.
 
No, it's not that you should have been able to figure it out. It is that the documentation in general is poor. This particular issue is documented, but it is very hard to find because the index is also poor. I hope it gets improved.
 

Similar threads

Back
Top