I am not aware of native rexx support for LOAD. You could write a rexx
function in assembler. I believe if you look at the CBT web site there
is at least a single example of this.
This technique is something I use when I see machine instructions and I
don't know how to decode them. You may be able to adapt this to your
use. I issue TEST 'SYS1.LINKLIB(IEFBR14)'. I issue
"+0=x'opcode-2-decode'". Then I issue "L +0 I". To exit just issue
"END". Note that no updates will be made to 'SYS1.LINKLIB(IEFBR14)'.
You could use the previous technique on a program you already have
available on your system that issues a LOAD macro. Just zap the LOAD
parameter list using TEST sub-commands so that it loads the module you
require. Then have the LOAD macro code execute. You would wrap all these
TEST sub-commands in a clist (yes a clist). I normally don't use TEST in
a rexx exec however it may be possible. I know this is ugly but it meets
your requirement of avoiding assembler coding. ;-)
If this is for production work I would recommend writing the rexx
function unless you have another way to read the load module (for
example read and parse the load module source).
On 4/1/2012 08:52 AM, Itschak Mugzach wrote:
Is this possible to load (not link) a module into storage using Rexx? We
have a compiled table I need to examine using rexx and want to avoid
assembler coding in order to make the application simple. Thanks for your
ideas.
ITschak
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN