|
Hi Jim, The command you're looking for is GRTOBJAUT. But as you point out, a CL program using this command would have to adopt authority anyway, so why not simply have the reorg program adopt it? That's actually safer, because having a general purpose CL that grants authority to the files means someone could run just that program, then fiddle with the files, whereas the reorg program can only reorg the files. Regards, Peter Dow Dow Software Services, Inc. 909 425-0194 voice 909 425-0196 fax ----- Original Message ----- From: "Jim Langston" <jlangston@celsinc.com> To: <midrange-l@midrange.com> Sent: Tuesday, October 16, 2001 10:17 AM Subject: EDTOBJAUT in CL program? > We have a few files we need to change the object authority on so that we can > reorganize them in our daily > maintainance program. These files are always in use during business hours, > and I don't particulary care to > wait around 'til 7:30 or 8:00 when everyone logs off to change the authority > on the files to give QPGMR the > rights to reorganize them. > > Is there a way I can grant QPGMR, or any user for that matter, the authority > to a file inside of a CL program? > That way I could just submit the CL job to change the authority (I would > compile it with adopted authority > or to run under QSECOFR or such). > > Yes, I know I could compile my reorganize program with adopted authority, > but adopted authority is something > I don't like using. > > Thanks in advance, > > Jim Langston > _______________________________________________ > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: MIDRANGE-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l > or email: MIDRANGE-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/midrange-l. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
As an Amazon Associate we earn from qualifying purchases.
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.