GRTOBJAUT is used to grant specific authority for the objects mentioned in the command to another user or group of users.
<pre> Grant Object Authority (GRTOBJAUT)
Type choices, press Enter.
Object . . . . . . . . . . . . . Name, generic*, *ALL
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB, *ALL...
Object type . . . . . . . . . . *ALL, *ALRTBL, *BNDDIR...
ASP device . . . . . . . . . . . * Name, *, *SYSBAS
Users . . . . . . . . . . . . . Name, *PUBLIC
+ for more values
Authority . . . . . . . . . . . *CHANGE *CHANGE, *ALL, *USE...
+ for more values
Authorization list . . . . . . . Name, *NONE
Reference object . . . . . . . . Name
Library . . . . . . . . . . . *LIBL Name, *LIBL, *CURLIB
Reference object type . . . . . *OBJTYPE *OBJTYPE, *ALRTBL, *BNDDIR...
Reference ASP device . . . . . . * Name, *, *SYSBAS
Replace authority . . . . . . . *NO *NO, *YES </pre>
The use of <b>Reference Object</b> in this case is, for having the Object authorities similar to the Object which was mentioned under Reference Object Parameter.
Eg: If you would like to change the authority of TESTOBJ similar to TESTOBJ1.
Then, instead of mentioning the all user names(or groups) which were having authority on TESTOBJ1, You can simply mention the TESTOBJ1 in Reference Object Parameter.
Pradeep.
yes yes…… i forget it….let me try it, and update tomorrow….