A frequant usage for this sort of thing is either Key2 or Key4.

If you store information in the Key2/Key4 block using MVCDK with the correct 
key in R1, then you can reduce the likelyhood of storage overlays even if your 
pgm is running Sup+Key0.

Rob Scott
Developer
Rocket Software
275 Grove Street * Newton, MA 02466-2272 * USA
Tel: +1.617.614.2305 
Email: [email protected]
Web: www.rocketsoftware.com

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
GOODWIN, DIANE M.
Sent: 25 March 2010 14:36
To: [email protected]
Subject: Re: Subpools - specifically 241

Tony,
Would I be able to use another key if zero is so dangerous?


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Tony Lubrano
Sent: Thursday, March 25, 2010 10:31 AM
To: [email protected]
Subject: Re: Subpools - specifically 241

Diane,

I've used it many times... first, you must be in an authorized state or key.  A 
simple MODESET MODE=SUP,KEY=ZERO will get you where you need to be.  Then, 
allocate the storage:

IPK   ,           R2 = PSW Key
MODESET MODE=SUP,KEY=ZERO

STORAGE OBTAIN,SP=241,KEY=0... etc.

... alter the storage as required

SPKA  0(R2)        Back to your old key
MODESET MODE=PROB  Back to your old state

Save your current key so you can get back into it after you've obtained your 
storage and modified it.

Stay out of key zero as much as possible... while in key 0, you will want to 
have a specific set of instructions that alter your storage areas with little 
or no possibility of exiting.  Key 0 will allow you to alter almost any common 
storage area in the system.  An inadvertent register change can result in 
irreparable damage to the system; possibly resulting in an IPL.

I would refer to the z/OS Diagnosis Reference for details about the various 
subpools.

Tony Lubrano
Product Author
NEON Enterprise Software, LLC.
p: 281 207 4922 f: 281 207 4973
[email protected]
 
What is zPrime?  Find out at www.zprime.com or just ask us!
 

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
GOODWIN, DIANE M.
Sent: Thursday, March 25, 2010 9:06 AM
To: [email protected]
Subject: Subpools - specifically 241

Hello,
        I was wondering if anyone is using subpool 241 in their processing.
        I had an earlier thread about using subpool 241 with a key of 9.
Based on the info I have read and some of you have given me, I'm thinking of 
trying to still use subpool 241 but with a key of 0.

        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.

Thanks in advance for your time.


Diane M. Goodwin
IT System Adminstration Specialist
Amica Insurance Company
email:  [email protected]

"I'm not a cynic.  I'm a disappointed optimist."  - George Carlin




----------------------------------------------------------------------
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

----------------------------------------------------------------------
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

----------------------------------------------------------------------
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

----------------------------------------------------------------------
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