On 25 March 2010 10:05, GOODWIN, DIANE M. <[email protected]> wrote:

>        I have been trying to find info on how to use the subpools - but
> it seems like 2 pages in one manual and then 3 in another.  Does anyone
> know if there is a someplace I can find information on how to use this
> properly?  Things like - what state does the program need to be in -
> problem or supervisor?  Any other gotchas like that.

The whole notion of subpools has a lot of historical baggage. The
default subpool is 0. For subpools 0 and 1-127, the subpool number is
pretty much used only to organize storage, and to allow the freeing of
all storage in a given subpool with one call to FREEMAIN or STORAGE
RELEASE. For higher number subpools, the number carries additional
information, which in some cases can also be specified directly on the
GETMAIN or STORAGE OBTAIN. For example, subpool 241 is always in
common storage (CSA), and by default has the caller's key, but you can
specify the key you want on the request. There are unexpected
subtleties and oddities - for instance if a caller in supervisor state
and key 0 requests subpool 0, instead storage of subpool 252 is
assigned. Keep in mind that it is also possible to modify certain
attributes of your storage after you have obtained it from the system.

The best reference for subpools is in the MVS Diagnosis Reference, in
the section System Reference->Storage Summary->Storage Subpools. There
is a chart, and a set of useful notes, including one on how storage
keys relate to the caller's PSW key. The number of footnotes gives you
an idea of how many oddities there are.

Tony H.

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

Reply via email to