As an aside to this issue, I feel compelled to point out that (in the interest 
of system integrity) you should be accessing the parameter list passed by your 
caller in the key of your caller. In the PC-ss routine, you've mentioned doing 
MVCP / MVCS to copy a parameter list from caller-provided storage. MVCP and 
MVCS allow you to specify a key to access this storage, and it should be done 
in the key of the caller.
 
   Since this is done in a PC-ss routine, you can get the key of your caller 
from using the ESTA instruction and fishing out the PSW key from the 3rd nibble 
of the PSW.

   The same is true for populating 'output' parameters from the PC-ss routine 
if it is storing into caller-provided storage; the storage reference for that 
caller-provided storage should be done in the key of the caller.

- Adam Johanson

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

Reply via email to