× 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 would think that the *splctl alone would do it.
There is an interesting paragraph in Info Center (search: cpysplf authority
(note it says for dspdta "when the outq created..."
For the Copy Spooled File (CPYSPLF), Display Spooled File (DSPSPLF), and
Send Network Spooled File (SNDNETSPLF) commands, in addition to the four
ways already listed, there is an additional way a user can be authorized. If
DSPDTA(*YES) was specified when the output queue was created, any user with
*USE authority to the output queue will be allowed to run these commands.
The specific authority required is *READ data authority. Copying,
displaying, sending, and moving a file to another output queue by changing
the spooled file can be limited by specifying DSPDTA(*OWNER). Then only the
owner of the spooled file or user with *SPLCTL can perform these operations
on the spooled file.

jim



----- Original Message ----- 
From: <fkany@xxxxxxxxxxxxxxxxxx>
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Sent: Friday, September 24, 2004 11:18 AM
Subject: RE: Not authorized to spooled file - CPF3492


>
>
> Here is a more detailed description of what I'm trying to accomplish.
>
> (OBJECTIVE) - Email any spool file regardless of what outq it was created
> in and who created it without making PERMANENT changes to the OUTQ
> attributes.
>
> (TASKS) - I compiled the CL program with USRPRF(*OWNER).  The owner for
the
> CL program object is QPGMR.  I checked to make sure QPGMR has *SPLCTL and
> it does.  Here's the area of the CL program where I get the errors:
> CHGOUTQ     OUTQ(&SOMEOUTQ)   AUTCHK(*DTAAUT)
> CPYSPLF     FILE(&SPOOLFILE)  TOFILE(QTEMP/WORKFILE)  +
>             JOB(&JOBNUMB/&JOBUSER/&JOBNAME) +
>             SPLNBR(&SPLFNUMB)
> CHGOUTQ     OUTQ(&SOMEOUTQ)   AUTCHK(*OWNER)
>
> (ERRORS) - When I run the program under a test user profile, "Not
> authorized to use object SOMEOUTQ" error occurs when the CHGOUTQ
> OUTQ(&SOMEOUTQ) AUTCHK(*DTAAUT) is executed.  When I remove the CHGOUTQ
> command the CL just tries to execute the CPYSPLF command, the "Not
> authorized to spooled file" error occurs.
>
> Am I missing anything?  Please let me know if you need to know more
> information.
>
> TIA,
>
> Frank
>
>
>
>
> --
> 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 ...

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.