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



Use adopted authority.  Ensure the owner of the programs using
QTEMP/DupOfFILEA has enough authority to use DupOfFILEA.  Here are the
steps.

1. Create program with the user profile parm set to *OWNER.
2. Change the program owner to be a profile with enough authority to use

   DupOfFILEA.

This assumes the program using DupOfFILEA won't grant unwanted authority
to the user.  You know, if the program has a command line you will want
to do the following.

1.  After the CPYF of LIBA/FILEA to QTEMP/DupOfFILEA grant *PUBLIC *ALL
rights.
    GRTOBJAUT OBJ(QTEMP/DupOfFILEA) OBJTYPE(*FILE) USER(*PUBLIC)
AUT(*ALL)

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai
Sent: Thursday, January 12, 2006 9:02 AM
To: Midrange Systems Technical Discussion
Subject: RE: Cpy file command copy the authority


Below is the problem that I'm encountering:
1) I have a file FILEA in production lib LIBA that user only have *use
auth.
2) A program is suppose to use cpyf command to dup it to qtemp and
adding data the this qtemp file.  It failed because the auth setting got
copied over.

Other than using sql or save and restore, is there any other easier way
to go around this problem?

 

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Thursday, January 12, 2006 10:27 AM
To: Midrange Systems Technical Discussion
Subject: RE: Cpy file command copy the authority

Yes.  Before copying I did a WRKOBJ and added a different profile at the
bottom.  After the CPYF the new person was in the new file.

Rob Berendt


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.