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.