On 23 Nov 2020 20:21:55 -0800, in bit.listserv.ibm-main (Message-ID:<[email protected]>) [email protected] (Paul Gilmartin) wrote:

>On Mon, 23 Nov 2020 21:56:22 -0600, Al Ferguson wrote:
>
>>They are not necessary, but you can use a variable after the ADDRESS. I have written a few REXX programs where I used:
>>        ADDRESS CMD
>>
>>Where I set CMD = "environ actual-command".
>>
>I'm incredulous.  Are you sure you didn't:
>    interpret 'ADDRESS' CMD
>???
>The symbol in the simpler form of ADDRESS  is *never*
>evaluated as a variable.

I believe that both of the above are, at best, partially correct.

Paul is correct that ADDRESS CMD should set the environment to CMD regardless of the value of a variable named CMD. However, it is possible to use a variable: ADDRESS (CMD) is the equivalent of ADDRESS VALUE CMD, which would set the environment to the value of variable CMD.

The above is my interpretation of the ADDRESS command as explained in IKJ4A3A0.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to