× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


I have a program that utilizes setsppfp() to get a pointer to the associated 
space of a binding
directory object. It runs fine on our development box as well as on our 
production box. The program
crashes with MCH6801 on our test box which is another LPAR of our production 
box. The violation type
is 1 = Object domain violation.

Both LPARS (production and test) are at security level 30. As far as I know the 
production LPAR is
DBCS and the test LPAR is SBCS. Both LPARs are at PTF level TL05298.

This is the code I use:

D pObj            S               *   inz  procptr
D spcObj          S          32767A   based(pSpcObj )
 *  Resolve system pointer to object

C                   Eval      pObj = rslvsp(WLI_BNDDIR  :
C                                           obj_name    :
C                                           obj_lib     :
C                                           AUTH_SPACE  )
 *  Get space pointer from system pointer
C                   Eval      pSpcObj = setsppfp(pObj)
 *  Since we can not access the data of the associated space
 *  directly, we have to copy it from the system domain to the user domain.
 *  (We do not really want to patch the program to system state.  ;-)  )

Any help would be greatly appreciated.


Thomas Raddatz.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.