|
If this is a CL program, there's also the ability to set this at compile
time. Delete the CL program first. In PDM, select option 14 and press F4.
Make sure that you leave the replace parameter set to *no. Press F10, and
change the user profile parameter to *owner. Press enter, and you're done.
To understand why you need to delete the program first, press F1 while the
cursor is on the user profile parameter, and read the help text for a
little known secret.
Paul Nelson
Arbor Solutions, Inc.
708-670-6978 Cell
pnelson@xxxxxxxxxx
"Courage is contagious. When a brave man takes a stand, the spines of
others are often stiffened." ~~ Billy Graham
David Gibbs <david@xxxxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
12/23/2003 08:36 AM
Please respond to Midrange Systems Technical Discussion
To: midrange-l@xxxxxxxxxxxx
cc:
Subject: Re: Adopted Authority
MWalter@xxxxxxxxxxxxxxx wrote:
> Firstly, a very happy and safe holiday season to you and yours.
Same to you :)
> Now, How does one use adopted authority?
It's deceptively simple ...
Compile the program that performs the function you want. Change the
owner of the program to whoever actually has the authority you want to
adopt, then do a CHGPGM and set USRPRF(*OWNER) and USEADPAUT(*YES).
Now, when someone runs that program, they are effectively using the
authority of the programs owner.
Word of caution, however, adopted authority doesn't work with most IFS
commands ... for that you have to actually switch user profiles.
> I have a menu option that calls an interactive program that saves
certain
> files then a library. The user does not have management rights to
certain
> objects in the library so she is not able to save the entire library. Is
> adopted authority an option in this scenario?
Yes, adopted authority should work fine in that scenario.
david
_______________________________________________
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.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.