Print User Objects (PRTUSROBJ)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Print User Objects (PRTUSROBJ) command allows you to print a report of the objects in a library that are not created by IBM. Objects are included in the report if the "Created by user" attribute is not *IBM or QLPINSTALL. Use this command to check for user created objects that are in libraries intended for use only by IBM. For example, you may want to run this program for library QSYS to determine if it contains any non-IBM (user) objects.

Note: Some objects created by IBM will still appear in this report. For example, objects created by a PTF exit program will be included in this report . Objects are excluded from the report only when their "Created by user" attribute is either "*IBM" or "QLPINSTALL."

This command will print two reports for a library. The first report (Full Report) will contain all of the objects that have not been created by IBM. The second report (Changed Report) will contain the object that now appear in the specified library and were not in the library when the PRTUSROBJ command was previously run for the library. If the PRTUSROBJ command was not previously run for the library, there will be no 'Changed Report'. If the command has been previously run for the library but no additional objects have been added to the library that were not created by IBM, then the 'Changed Report' will be printed but there will be no objects listed.

The file QSECPUOOLD in library QUSRSYS contains information from the last time the PRTUSROBJ command was run for a library. There is a member within the file, with the same name as the library specified, for each library previously specified on the command. System file QADSPOBJ in library QSYS with format name of QLIDOBJD is the model file for the QSECPUOOLD file.

Restriction: You must have all object (*ALLOBJ) or audit (*AUDIT) special authority to run this command.

Top

Parameters

Keyword Description Choices Notes
LIB Library Name Required, Positional 1
CHGRPTONLY Changed report only *NO, *YES Optional, Positional 2
Top

Library (LIB)

This is a required parameter.

The name of the library to search for objects that were not created by IBM.

Top

Changed report only (CHGRPTONLY)

Specifies whether just the changed report should be printed.

*NO
The full and changed reports will be printed.
*YES
Only the changed report will be printed.
Top

Examples

PRTUSROBJ   LIB(QSYS)  CHGONLY(*NO)

This command searches library QSYS for any objects that were not created by IBM and prints both full and changed reports.

Top

Error messages

*ESCAPE Messages

CPFB304
User does not have required special authorities.
Top