On Wed, 5 Sep 2012 15:41:15 -0700, Charles Mills wrote:

>> It would be easy enough to code one that returns as a numeric string the 
>> address of one of its arguments.
>
>My recollection is that when calling assembler from Rexx you get the address 
>of a copy of the string data, not the address of whatever internal control 
>block represents a "variable" in Rexx. You can modify it all you want but it's 
>a copy of the data, not "Rexx's data" and the address is meaningless once you 
>return to Rexx.
>
However, ADDRESS LINKPGM (and I believe ADDRESS LINKMVS) allow the
called program to modify the Rexx variables passed as arguments, whether
via a copy or directly.  See SYS1.SAMPLIB(CSFTEST) for an example.

>AFAIR you get one of those VM-style "PLIST" (is that the right term?) 
>parameters: word 1 = address, word 2 = length, x'FFFFFFFFFFFFFFFF' = end of 
>list.
>
LINKPGM, et al. pass OS CALL-style PLISTs.

>There is a library function to modify a Rexx variable from assembler, but it 
>is very "sandboxed."
>
Is this IRXEXCOM, IIRC?

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to