Work with Objects by Owner (WRKOBJOWN)
Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC) Threadsafe: No |
Parameters Examples Error messages |
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
Restrictions: You must have read (*READ) authority to the specified user profile.
Top |
Parameters
Keyword | Description | Choices | Notes |
---|---|---|---|
USRPRF | User profile | Name, *CURRENT | Optional, Positional 1 |
OBJTYPE | Object type | Single values: *ALL Other values (up to 100 repetitions): *ALRTBL, *AUTL, *BLKSF, *BNDDIR, *CFGL, *CHRSF, *CHTFMT, *CLD, *CLS, *CMD, *CNNL, *COSD, *CRG, *CRQD, *CSI, *CSPMAP, *CSPTBL, *CTLD, *DEVD, *DIR, *DOC, *DTAARA, *DTADCT, *DTAQ, *EDTD, *EXITRG, *FCT, *FIFO, *FILE, *FLR, *FNTRSC, *FNTTBL, *FORMDF, *FTR, *GSS, *IGCDCT, *IGCSRT, *IGCTBL, *IMGCLG, *IPXD, *JOBD, *JOBQ, *JOBSCD, *JRN, *JRNRCV, *LIB, *LIND, *LOCALE, *MEDDFN, *MENU, *MGTCOL, *MODD, *MODULE, *MSGF, *MSGQ, *M36, *M36CFG, *NODGRP, *NODL, *NTBD, *NWID, *NWSCFG, *NWSD, *OUTQ, *OVL, *PAGDFN, *PAGSEG, *PDFMAP, *PDG, *PGM, *PNLGRP, *PRDAVL, *PRDDFN, *PRDLOD, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *RCT, *SBSD, *SCHIDX, *SOCKET, *SPADCT, *SQLPKG, *SQLUDT, *SQLXSR, *SRVPGM, *SSND, *STMF, *SVRSTG, *SYMLNK, *S36, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST |
Optional |
Top |
User profile (USRPRF)
Specifies the user profile whose owned objects are to be shown.
- *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.
Top |
Object type (OBJTYPE)
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/.
Single values
- *ALL
- All objects owned by the specified user profile will be shown.
Other values (up to 100 repetitions)
- 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.
Top |
Examples
Example 1: Working With Objects Owned by the Current User Profile
WRKOBJOWN USRPRF(*CURRENT)
This command displays the Work with Objects by Owner panel, showing a list of the objects owned by the user running this command.
Example 2: Working With Objects Owned by a User Profile
WRKOBJOWN USRPRF(BARTH)
This command displays the Work with Objects by Owner panel, showing a list of the objects owned by user profile BARTH.
Top |
Error messages
*ESCAPE Messages
- CPFA0AB
- Operation failed for object. Object is &1.
- 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.
Top |