With respect to the problem being mentioned here, a critical portion of the 
APAR information was left out.

Here's what was included in the previous post:

>"ACTION: After many attempts to solve this that failed, it was decided that we 
>could not support IMFEXEC SUBMIT in this context. A new 
message was added to Exec Manager to block the use of IMFEXEC SUBMIT and give 
the user a RC=16. The message documentation 
suggests that
>the user switch to using JESSUBM instead.
>CIRCUMVENTIONS:
>Run the PAS in key8. Under z/OS 1.8, this may require setting the DIAG 
>parameter named ALLOWUSERKEYCSA to YES."

Here's the rest of the APAR information (which appearred BEFORE the ACTION in 
the APAR text):

ANALYSIS:
When running a MAINVIEW AutoOPERATOR PAS in key4 under z/OS 1.8
with ALLOWUSERKEYCSA(NO), the use of IMEXEC SUBMIT fails with a
S0C4. This is because IKJEFF04 has hard-coded PSW key switches to
key8 even though it was invoked in key4. As soon as the routine
switches to key8, it will fail when it attempts to update or
fetch any information from a control block in key4 storage.

-- End of additional APAR text --

While I am not defending the product's need for Key 8 CSA in order to perform 
the requested function, the problem is being caused by an IBM 
module that NOT conforming to expectations, i.e., that any module that changed 
states would be expected to return to the caller's state, not 
arbitrarily assume that the caller was in a particular key or state.

YEARS AGO, at GUIDE (and probably at SHARE as well), this type of behavior was 
pointed out to IBM and REQUIREMENTS were submitted 
to get it changed.  They were routinely REJECTED.  A GUIDE White Paper on the 
subject of well behaved interfaces pointed out that this 
behavior (i.e., hard coding key 8) violates both the Principle of Least 
Astonishment and the Kindergarten Rules of Programming (adapted from 
the essay, "Everything I need to know, I learned in Kindergarten").

Disclaimer:  I work for BMC on some MAINVIEW products, although not the one 
involved with this problem.




Keith E. Moe
Laid Back Software, Inc.
http://www.laidbacksoftware.com
(408) 749-0655

Creator of the TSO Environment and Administration Manager Product.

(I also do MAINVIEW support for BMC Software, Inc.)

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