>Is there a simpler way to see whether we 
>were called in key 8

I think that the odds are high that you should not be testing for "key 8". 
Rather you should be testing for "non-system key" i.e., key 8-15.

Note also that if you were entered by PC that might have changed key, you 
need to get the PSW via the ESTA instruction (you can use this also if you 
saved info on the linkage stack). Nevertheless, if you are running still 
in user key so can use EPSW, 

EPSW  R14,R0
TMLH  R14,X'0080'    Key 8-15?
JO    It_Is_UserKey  Yes, branch

Peter Relson
z/OS Core Technology Design

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to