HELP Please! I am running a command within a REXX command file to run another REXX command, passing a parameter e.g.
With Command1.cmd starting:
The problem is that the variable MSG then seems to have lost one of the spaces e.g.:
Can anyone offer explanation and resolution?
I see it too with 3.2 on Win32. Even with
msg = ARG(1)
which as I understand it should represent the entire argument w/o collapsing spaces ('20'x).
OK, thanks. Luckily in my current project the string will always be the same format so I can just add a a space between the first half of the string and the second half but its a bit of a pain. Thanks for you help on this one. (Again!)
In case anyone is interested - resolution to this explained in Bug #623599
its no good...I still cant get this to work. My work around isnt feasible after all. The explaination in bug #623599 works if the parameters are hard coded but as I am passing both command and parameter as a variable, it fails. e.g.
'rexx' '"mycomand.cmd"' '"123 456 789"'
CMDNAME = mycomand.cmd
PARAM = "123 456 789"
'rexx' '"CMDNAME"' '"PARAM"'
wont work. (I wont go into details but we cant change this logic). I have tried using "CALL" but that throws an error. Any suggestions? Thanks
OK, i've cracked it now by adding [single quote][double quote][single quote] at either side of the parameter variable PARAM i.e.:
PARAM = '"'PARAM'"'
Log in to post a comment.