Command reference / sec

WRKOBJOWN

Work with Objects by Owner

The Work with Objects by Owner (WRKOBJOWN) command is used to manage objects for any user profile. This command displays objects owned by a user profile and performs the following: Edit object authority Delete the object Display object authority Rename the object Display the object's description Change the ownership of the object The QSYS2.OBJECT_OWNERSHIP view returns similar information.

Allowed environments: *INTERACT, *IPGM, *IREXX, *EXEC. Positional parameters: 1.

Restrictions

Parameters

USRPRF User profile

Specifies the user profile whose owned objects are to be shown.

Type
*NAME
Required
No
Default
*CURRENT
Length
10
Case
Uppercase

Suggested / special values: *CURRENT

*CURRENT
Objects owned by the user profile that is running the WRKOBJOWN command are shown.
name
Specify the name of the user profile whose owned objects are to be shown.

OBJTYPE Object type

Specifies which types of objects are shown. This parameter can be specified as a single value or as a list of one or more object types. To see a complete list of object types when prompting this command, position the cursor on the field for this parameter and press F4 (Prompt). For a description of the object types, see "Object types" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/.

Type
*CHAR
Required
No
Default
*ALL
Length
7
Case
Uppercase
*ALL
All objects owned by the specified user profile will be shown.
object-type
Specify one or more values for the types of objects that are shown. All objects of the specified types that are owned by the specified user profile will be shown.

Examples

WRKOBJOWN USRPRF(*CURRENT)

Working With Objects Owned by the Current User Profile. This command displays the Work with Objects by Owner panel, showing a list of the objects owned by the user running this command.

WRKOBJOWN USRPRF(BARTH)

Working With Objects Owned by a User Profile. This command displays the Work with Objects by Owner panel, showing a list of the objects owned by user profile BARTH.

IBM command documentation

Generated from os/cl/catalog/WRKOBJOWN.json and os/cl/help/WRKOBJOWN.json.