Thanks for the quick reply. After I got ARexx running, I noticed something
else. When getting command-line arguments, every argument after the first has a
leading blank. E.g. if I enter "rx MATCH TEXT", and do an ARG arg1 inside
MATCH.rexx, arg1 is " TEXT" rather than "TEXT". This doesn't seem to be what
the manual says, and certainly isn't useful.
Also, is there any way to get the whole argument string unchanged, so you
can do your own parsing on it?
Bob,
If you want to parse the ARexx argument string into words, try using the
placeholder (.) in the parsing template. For example,
ARG arg1 .
would take your example "rx MATCH TEXT" and place just "TEXT" in arg1.
You can retrieve the entire argument string using the ARG() built-in function
for further processing.
The PARSE instruction in ARexx is very powerful, but takes a while to learn.
Bill