IBM Power Systems
About This Blog
Warm wishes and welcome to all AS400 Administrators and Operators.
This is exclusive blog for iSeries system Administrators working anywhere in the world. Also a place for guys and gals who want to share knowledge pertaining to iSeries. This blog has been designed for exchanging knowledge on AS400 or iSeries server administration and operations.
Thursday, April 15, 2010
Obtaining a List of Public Authorities for All Objects in a Library
To obtain a list of *PUBLIC authorities for all objects in a specific library, do the following:
1) On the operating system command line type the following:
WRKOBJ OBJ(LIBXXX/*ALL) OBJTYPE(*ALL)
Press the Enter key. Select Option 5 for all of the objects, as shown below:
Opt Object Type Library Attribute Text
5 DTAQ1 *DTAQ LIBXXX
5 BATCHRT *FILE LIBXXX SAVF
5 CRTMQM *FILE LIBXXX SAVF
5 IBM *FILE LIBXXX PF
5 IBM1 *FILE LIBXXX PF
2) At the command line, type the following:
OUTPUT(*OUTFILE) OUTFILE(XXX/ZZZZ) OUTMBR(*FIRST *ADD)
where XXX is the library where you want the file to reside and ZZZZ is the name of the file to be created.
Then press the Enter key. The system will automatically create the file specified in the OUTFILE if it does not already exist. A record will be added to the file for each object that had a 5 placed in front of it. After the file has been created, you can run a query on the file to create your report.
1) On the operating system command line type the following:
WRKOBJ OBJ(LIBXXX/*ALL) OBJTYPE(*ALL)
Press the Enter key. Select Option 5 for all of the objects, as shown below:
Opt Object Type Library Attribute Text
5 DTAQ1 *DTAQ LIBXXX
5 BATCHRT *FILE LIBXXX SAVF
5 CRTMQM *FILE LIBXXX SAVF
5 IBM *FILE LIBXXX PF
5 IBM1 *FILE LIBXXX PF
2) At the command line, type the following:
OUTPUT(*OUTFILE) OUTFILE(XXX/ZZZZ) OUTMBR(*FIRST *ADD)
where XXX is the library where you want the file to reside and ZZZZ is the name of the file to be created.
Then press the Enter key. The system will automatically create the file specified in the OUTFILE if it does not already exist. A record will be added to the file for each object that had a 5 placed in front of it. After the file has been created, you can run a query on the file to create your report.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment