PRTUSROBJ (Print User Objects)

PRTUSROBJ Command syntax diagram

 

Purpose

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.

This command prints two reports for a library. The first report (Full Report) contains all of the objects that have not been created by IBM. The second report (Changed Report) contains the objects 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' is printed but there are no objects listed.

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

Restrictions: You must have *ALLOBJ special authority to use this command.

 

Required Parameters

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

library-name: Specify the name of the library to be searched.

 

Optional Parameters

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.

Example for PRTUSROBJ

PRTUSROBJ   LIB(QSYS)  CHGONLY(*NO)

The library QSYS will be searched for any objects that were not created by IBM and the full and changed reports will be created.

Error messages for PRTUSROBJ

*ESCAPE Messages

CPFB304
User does not have required special authorities.