> ADDRESS LINKPGM ... allow the called program to modify the Rexx variables > passed as arguments
Could be -- but you still get the *string data*, right, not the address of whatever internal control block represents a variable inside Rexx? My *guess* would be that if you can indeed modify the data then the modification happens via the "IRXEXCOM-ing back" of the data into Rexx. > Is this IRXEXCOM Sounds right. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Paul Gilmartin Sent: Wednesday, September 05, 2012 4:10 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Strings (hijacked from: The IBM zEnterprise EC12 announcment) 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? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN