Here's how I solved my tendency to want to code "  SPKA  8":
    SPKA  KEY0
    SPKA  KEY8
    SPKA  KEYwhatever
             ...
KEY0  EQU   0*16
KEY8  EQU   8*16
KEYwhatever  EQU  whatever*16

And the EQU statements, inter alia, are in a macro that I copy into all my 
assemblies so I don't have to remember to code all the EQU statemetns, inter 
alia.

Bill Fairchild

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of 
Bill Hecox
Sent: Monday, November 07, 2011 6:26 AM
To: [email protected]
Subject: Re: How to enable Storage Protection Override?

>But apparently I should be able to freely switch between keys 8 & 9 
>using the SPKA instruction. I'm still not sure that is documented as 
>GUPI or not. Yes, I'm a PITA about some of these things. "Once burned, 
>twice shy."


If you are going to use the SPKA instruction, read the fine print.

'SPKA 8' will actually put you in KEY0. This is because the key has to be in 
the left nibble.
Use 'SPKA 8*16'  for KEY8. This will shift the 8 to the left 4 bits. 

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