× 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've never had need to use these but....


I *thought* the "current user" data in the PSDS gives you that (for RPG). RTVJOBA CURUSR(&PROFILE) for CL.



Roger Harman

COMMON Certified Application Developer - ILE RPG on IBM i on Power







________________________________
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxx> on behalf of Tim Bronski <tim.bronski@xxxxxxxxx>
Sent: Tuesday, July 26, 2016 8:55 AM
To: Midrange Systems Technical Discussion
Subject: Re: Adopted authority

Hi Chuck,

More specifically, I'd like to know in a program the name of the profile
whose authority I'm adopting - if any. I need to test for certain
special authorities before attempting/reporting certain operations.
Testing the effects of not having the authority is a least favored
method. I can retrieve the current user profile but that doesn't give me
the full picture if I'm adopting authority from the caller.

Tim


On 7/26/2016 5:47 PM, CRPence wrote:
Generally knowing of adoption is not relevant outside the program
itself; i.e. the current program /knows/ if the thread is adopting,
based on the effects of the [in]ability to resolve to an object that
requires the adopted authority. That is to suggest, either the
program fails with an exception x0A01 [MCH1001] per authority is
unavailable, else the program gains privilege via the adopted authority.

--
Need sFTP or PGP? Download your native sFTP or OpenPGP solutions here:
www.arpeggiosoftware.com<http://www.arpeggiosoftware.com>
Arpeggio Software Provides SFTP, Dropbox File Sharing ...<http://www.arpeggiosoftware.com/>
www.arpeggiosoftware.com
Arpeggio Software provides secure cloud integration and security software for the IBM i.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

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.