Q
Problem solve Get help with specific problems with your technologies, process and projects.

List all objects owned by a profile

Is there a way to create a file or list instead of a online screen of the wrkobjown command for users? I want to create a list and send it out to the developers to clean their objects periodically.

Use the DSPUSRPRF command. For example: DSPUSRPRF USRPRF(KEG) TYPE(*OBJOWN) OUTPUT(*PRINT)

This example will list all objects owned by profile KEG.

The report looks like this:

 

                                               Display Owned Objects 
                                                   
 User Profile . . . . . . . . . . . . . . . :   KEG

 Total objects  . . . . . . . . . . . . . . :   69

                                            Authority

 Object         Library        Type          Holder

 PDSN101354     QDOC           *DOC

 LKXR123169     QDOC           *FLR

 MC4M302805     QDOC           *FLR

 MC4M374665     QDOC           *FLR

 KEG            QUSRSYS        *MSGQ

*CPI220D - 64 objects were not included in this list.

 * * * * *   E N D   O F   L I S T I N G   * * * * * 

The CPI220D indicates that objects in the IFS (directories and other stream files) are not listed on this report. It also mentions that you can obtain this information via the QSYLOBJA API with format OBJA0110, OBJA0210, or OBJA0310.

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions--or help out your peers by answering them--in our live OS/400 discussion forums.

Search400.com's targeted search engine: Get relevant information on V5R1.


Dig Deeper on Upgrading

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close