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



Frank,

The reason you were having a problem is that adopted authority does not
travel to batch jobs.  So when you did the SBMJOB, you lost the adopted
authority of the interactive job.  By adopting authority on the batch
job you fixed this problem... for anything that resides in the QSYS.LIB
library system

Unfortunately adopted authority does not work in directory file systems
other than QSYS.LIB.  If you want to do something similar to adopted
authority, you'll have to use the profile swapping or the SETUID API's
to change the current user of your program.  

We have a commercial product that does this, but as you said you are
trying to roll your own, you're going to have to dig into the API's.

jte  


--
John Earl | Chief Technology Officer
The PowerTech Group
19426 68th Ave. S
Seattle, WA 98032
(253) 872-7788 ext. 302
john.earl@xxxxxxxxxxxxx
www.powertech.com 
 

 
This email message and any attachments are intended only for the use of
the intended recipients and may contain information that is privileged
and confidential. If you are not the intended recipient, any
dissemination, distribution, or copying is strictly prohibited. If you
received this email message in error, please immediately notify the
sender by replying to this email message, or by telephone, and delete
the message from your email system.
--

> -----Original Message-----
> From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-
> bounces@xxxxxxxxxxxx] On Behalf Of
> fkany@xxxxxxxxxxxxxxxxxx
> Sent: Friday, September 24, 2004 12:49 PM
> To: Midrange Systems Technical Discussion
> Subject: Re: Not authorized to spooled file - CPF3492
> 
> 
> 
> Paul,
> 
> That worked.  It is strange that I had to delete the CL
> program before
> recompiling it with USRPRF(*OWNER), it got a little bit
> farther and that's
> all that matters.  The program was able to adopt authority
> of QPGMR and
> execute the CPYSPLF command.
> 
> Now the program is getting the "Not authorized to object.
> Object is
> /QDLS/SPOOL/SPLF.DOC." error message when trying to use
> the CPYTOIMPF
> command.  I edited the authority for folder SPOOL and that
> didn't work.  Is
> SPLF.DOC the object the error message is referring to?
> How can I change
> the document authority?
> 
> TIA,
> 
> Frank
> 
> 
> 
> 
> 
> pnelson@xxxxxxxxxx@midrange.com on 09/24/2004 03:11:00 PM
> 
> Please respond to Midrange Systems Technical Discussion
>        <midrange-l@xxxxxxxxxxxx>
> 
> Sent by:    midrange-l-
> bounces+fkany=averittexpress.com@xxxxxxxxxxxx
> 
> 
> To:    Midrange Systems Technical Discussion <midrange-
> l@xxxxxxxxxxxx>
> cc:
> 
> Subject:    Re: Not authorized to spooled file - CPF3492
> 
> 
> Also, make sure that you delete CLPGM2 before you compile,
> and to specify
> REPLACE(*NO). It sounds weird, but read the help text
> carefully for the
> reasons.
> 
> 
> Paul Nelson
> Arbor Solutions, Inc.
> 708-670-6978  Cell
> pnelson@xxxxxxxxxx
> 
> 
> 
> --
> 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 thread ...


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.