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



Hi, Steve:
 
What *DTAARA are you trying to access?
 
If I create a *DTAARA in a user library, with CRTDTAARA, it is created
in "user domain", so this should not present any problems at Level=40.
 
Perhaps you are trying to access a *DTAARA that was created by IBM
in "system domain" (for some unknown reason)...?
 
There are two documented APIs that you can use to retrieve and change
a *DTAARA, QXXRTVDA and QXXCHGDA. Both of these APIs can be
called by a user in user state and user domain, but, as with most IBM
provided APIs, they are set to "system state, user domain", and so
they can access any object in either domain (I believe).  (These two
APIs are documented in the ILE C Programmers Guide, I believe.)
 
I hope that helps...
 
Regards,
 
Mark S. Waterbury
----- Original Message -----
Sent: Tuesday, May 29, 2001 10:40 AM
Subject: mi access to a dtaara

People of the mi,
 
I can set a sysptr to a dtaara object ( object type x'190A' ).  But I get MCH6801 when I SETSPPFP on this sysptr.  ( security level 40, v4r4 )
    DCL SYSPTR pSysDataArea AUTO ;
    DCL SPCPTR pSpcDataArea AUTO ;
    SETSPPFP pSpcDataArea, pSysDataArea ;
    /* boom.  mch6801 */
 
But, the pco has a sysptr to the *lda in pos(561) and when I SETSPPFP to the *Lda sysptr, a useable spcptr is returned.
    DCL SYSPTR pSysLda BASPCO POS(561) ;
    DCL SPCPTR pSpcLda AUTO ;
    DCL DD cLda CHAR(512) ADDR(*BAS pSpcLda) POS(97) ;
    DCL DD cCopyOfLda CHAR(512) AUTO ;
    SETSPPFP  pSpcLda, pSysLda ;
    /* no boom */
    CPYBLA  cCopyOfLda, cLda ;
 
The subject as400 is running at security level 40, release v4r4.
 
Any comments on why the *lda is accessible with a spcptr?
 
Do you think this access will be permitted in future releases?
 
thanks,
Steve Richter
 
 
 

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.