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



You can use the Retrieve Program Information (QCLRPGMI) API





-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Tim Bronski
Sent: Tuesday, July 26, 2016 8:48 AM
To: Midrange Systems Technical Discussion
Subject: Re: Adopted authority

Hi Gary, the DSPPGM isn't what I'm looking for. I'm looking to find out programmatically if a program at the current invocation level has adopted authority. The current program in the stack might not have the user profile set at *OWNER but might still be benefiting from authority adopted lower in the stack.


On 7/26/2016 5:33 PM, Monnier, Gary wrote:
Use DSPPGM to display the program in question's information.

Does the program show these settings?

User profile . . . . . . . . . . . . . . . . . : *OWNER
Use adopted authority . . . . . . . . . . . . : *YES

User Profile - Help

The value specified for the USRPRF option on the command used to create the program. This parameter indicates whether the program runs under the current user's user profile (*USER), or under both the current user's and the owner's user profile (*OWNER).

Use adopted authority - Help

The value specified for the USEADPAUT option on the command used to change the program. This parameter specifies whether program adopted authority from previous call levels is used (*YES) or not used (*NO) when this program is running.


If user profile is *OWNER you are adopting the program owner's authority.

If use adopted authority is *YES you are adopting the authority used by the invoking program/command.

Gary Monnier
IT Software Engineer CSM, CSPO



-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Tim Bronski
Sent: Tuesday, July 26, 2016 7:47 AM
To: Midrange Systems Technical Discussion
Subject: Adopted authority

Rather than hijack the current thread on authority adoption I'll start afresh...while we're on the topic does anyone know of a way to find out if the current program is working with adopted authority or would I have to walk the stack back?

Tim
--
Need sFTP or PGP? Download your native sFTP or OpenPGP solutions here:
www.arpeggiosoftware.com<http://www.arpeggiosoftware.com>
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email:
MIDRANGE-L@xxxxxxxxxxxx<mailto: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<mailto: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<mailto:support@xxxxxxxxxxxx> for any subscription related questions.


--
Need sFTP or PGP? Download your native sFTP or OpenPGP solutions here:
www.arpeggiosoftware.com
--
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.