Re: your last point, why can't Rexx also have LOADPGM/LOADMVS along with 
LINKPGM/LINKMVS?  Load once, call multiple times, ADDRESS DELPGM/DELMVS to 
remove from memory.

Just a thought.  I once thought of writing a Rex function package to accomplish 
the same, but never found the round tuits to accomplish it.

Peter

-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Paul Gilmartin
Sent: Thursday, December 17, 2020 2:18 PM
To: [email protected]
Subject: Rexx APIs (was: IODF address)

EXTERNAL EMAIL

On Thu, 17 Dec 2020 18:47:27 +0000, Seymour J Metz wrote:

>I know of no REXX facility to enumerate environments, but z/OS Version 2 
>Release 4 TSO/E REXX Reference describes the relevant environment, LINKPGM.
>
LINKPGM, which is essentially Assembler LINK macro, works well for such as 
ICSF; less well for such as SMP/E which require the programmer to pass 
structures containing addresses of user allocated request/reply buffers.  
Should Rexx have GETMAIN/FREEMAIN (or successor) interfaces?  That would be 
analogous to malloc()/free(), burdening the programmer with storage management 
and hazards wild stores.

In any case, LINKPGM in a loop may incur heavy LOAD/DELETE overhead.  That 
might be alleviated with Rexx Content Supervision interfaces, or LPA, or cached 
DASD.

-- gil

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

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


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

Reply via email to