If you are passing the address of the LOADed table to other modules somehow, 
then you can do the following:
LOAD the module into wherever the LOAD service chooses to put it.  If the 
caller is mode 24, then:  (1) save the length of the module, which is returned 
in R0 (or maybe R1; read the doc); (2)do a GOTMAIN below the line for an amount 
of storage equal to the length as the table; (3) copy the table into the 
GOTMAINed area; (4) DELETE the LOADed table; (5) pass the address of your 
GOTMAINed area to whatever modules need the address of the table.
If, however, the caller is AMODE 31, then give the 31-bit address of the table 
to the modules that need it.

Voilà.

However, if the other modules are finding the address of the table through the 
standard z/OS services, then the above will not work.

Bill Fairchild

Software Developer 
Rocket Software
275 Grove Street · Newton, MA 02466-2272 · USA
Tel: +1.617.614.4503 · Mobile: +1.508.341.1715
Email: bi...@mainstar.com 
Web: www.rocketsoftware.com


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of 
Baraniecki, Ray
Sent: Tuesday, May 19, 2009 11:45 AM
To: IBM-MAIN@bama.ua.edu
Subject: Re: AMODE Switching

I cannot control where the table is loaded. Or can I?

Thanks, 
 
Ray Baraniecki 
Morgan Stanley GWMG 
18th Floor 
1 New York Plaza 
New York, NY 10004 
Office - 212-276-5641
   Cell - 917-597-5692 
ray.baranie...@morganstaley.com          

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to