Dave,
Knowing your expertise in this area, it's very helpful.
Thanks,
Bryan
-----Original Message-----
From: mapics-l-bounces@xxxxxxxxxxxx
[
mailto:mapics-l-bounces@xxxxxxxxxxxx]On Behalf Of Dave Shaw
Sent: Friday, June 08, 2007 9:21 AM
To: MAPICS ERP System Discussion
Subject: Re: [MAPICS-L] MAPICS file authorities
Bryan,
I've done this a few different ways.
1) Subset the files to be changed in PDM, if it's possible.  Set up user 
options to make the changes.  Enter the user option on the first file, press 
F13 to propagate it to all files in the list, press Enter, and wait.  You 
have to be able to get an exclusive lock on every file in the list, and of 
course you have to have the authority to make the change.  No programming, 
but it might be a little touchy, and if you submit to batch you'll have one 
job for each file.
2) Build a list of the files in a work file.  Write a CL or RPG (or even 
Cobol, if you like) program to read the file and execute the appropriate 
command.  The programming is simple, once you have the work file built.
3) Chgobjown doesn't allow generic names, but people have rolled their own 
to do it (using the second technique above), and someone may have posted 
code on the web somewhere.  There was one in QUSRTOOL back in the old days, 
for example.  Grtobjaut does allow generic names, include *ALL, so you could 
just run it against all the files in the library, if that wouldn't hurt 
anything.
There may be other choices.  Hope this helps.
Dave Shaw
----- Original Message ----- 
From: "Burns, Bryan" <Bryan_Burns@xxxxxxxxxxxx>
To: <MAPICS-L@xxxxxxxxxxxx>
Sent: Friday, June 08, 2007 9:31 AM
Subject: [MAPICS-L] MAPICS file authorities
1.  I'd like to change the ownership of 1,300 files in AMFLIBE to from the 
current owners to user AMAPICS.
2. I need to perform a GRTOBJAUT AUT *USE for user ODBCUSER for 6,000 
files in AMFLIBE.
If anyone has done this type of thing, I'd appreciate any pointers. It's a 
whole lot more problematic than I envisioned.
Bryan Burns
IBM Certified Specialist - iSeries System Command Operations V5R2
M.I.S. Department
ECHO, Incorporated
www.echo-usa.com 
As an Amazon Associate we earn from qualifying purchases.