WRKOBJOWN (Work with Objects by Owner)

WRKOBJOWN Command syntax diagram

 

Purpose

The Work with Objects by Owner (WRKOBJOWN) command allows you to display and work with objects owned by any user profile. This command allows you to display objects owned by a user profile and perform the following:

Restriction: The user must have read authority to the profile being displayed.

 

Optional Parameters

USRPRF
Specifies the name of the user profile whose objects are being worked with.

*CURRENT: The user profile that is currently running is used.

user-profile-name: Specify the name of the user profile being worked with.

Examples for WRKOBJOWN

Example 1: Working With Current User Profile

WRKOBJOWN  USRPRF(*CURRENT)

This command allows you to work with the objects owned by the user running this command.

Example 2: Working With a User Profile

WRKOBJOWN  USRPRF(BARTH)

This command allows you to work with the objects owned by user profile BARTH.

Error messages for WRKOBJOWN

*ESCAPE Messages

CPFA0AB
Object name not a directory.
CPFA1BF
Object &1 is not accessible.
CPFA1C0
Object &1 is not accessible.
CPF2204
User profile &1 not found.
CPF2213
Not able to allocate user profile &1.
CPF2217
Not authorized to user profile &1.