|
CHGAUT may be able to help. OBJ(/QSYS.LIB/YOUR.LIB/*.DTAQ) USER(*PUBLIC) DTAAUT(*CHANGE) OBJAUT(*OBJREF) Modify for each type of object you need to change. But most likely you need to DSPOBJD to an out file and read the out file. This will give you control to write your own business rules that pertain to this type of change. DSPOBJAUT for each object to a file adding to the file. Then process that file to GRTOBJAUT to set the necessary authorities. Have fun then post your code in the Open Source forum for all of us. Chris Bipes -----Original Message----- All, Basically, I've got some libraries where a significant number of objects such as programs and commands currently have *PUBLIC authority of *ALL. (Note: I didn't set it up, I just inherited the mess ;-) What I need to do is change these objects to *USE. The tricky part is some objects have been set *PUBLIC *EXCLUDE. These *EXCLUDE objects should not be changed, so I can't just globally change every object in the library. Additionally, there are some objects, such as data queues that need to be changed from *ALL to *CHANGE instead of just *USE. I'll need a way to make sure I change any "data" type object from *ALL to *CHANGE instead of *USE. I figured before writing my own utility, I'd see if anybody had already done this. I'd appreciate any guidance or code anyone would be willing to share.
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.