Command reference / library

WRKOBJ

Work with Objects

Shows a list of objects from one or more libraries. For each object it shows the name, type, library, attribute, and short text description; data attributes and object contents are not shown. Several object-oriented options can be performed from the list.

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

Restrictions

Parameters

OBJ Object

Specifies which objects are shown on the Work with Objects display. This is a required parameter. The qualifiers are the object name (specific or generic) and the library.

Type
*QUAL
Required
Yes
Case
Uppercase
*ALL
As the object name, all objects of the types specified for OBJTYPE are shown. As the library, all libraries in the system, including QSYS, are searched.
*LIBL
All libraries in the thread's library list are searched.
*CURLIB
The thread's current library is searched; if none is set, QGPL is searched.
*USRLIBL
The current library and the user portion of the library list are searched; if no current library entry exists, only the user portion is searched.
*ALLUSR
All user libraries are searched, excluding Q-named libraries except the ones IBM lists as user-data libraries, and certain product libraries.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Object Object

Type
*GENERIC
Required
No
Length
10
Case
Uppercase

Suggested / special values: *ALL

Library Library

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

Suggested / special values: *LIBL, *CURLIB, *USRLIBL, *ALLUSR, *ALL

OBJTYPE Object type

Specifies the object type of the objects to be shown. Optional; the page lists a long set of *-prefixed object type choices, not individually described.

Type
*CHAR
Required
No
Default
*ALL
Length
7
Case
Uppercase

Allowed values: *ALL, *ALRTBL, *AUTL, *BNDDIR, *CFGL, *CHTFMT, *CLD, *CLS, *CMD, *CNNL, *COSD, *CRG, *CRQD, *CSI, *CSPMAP, *CSPTBL, *CTLD, *DEVD, *DOC, *DTAARA, *DTADCT, *DTAQ, *EDTD, *EXITRG, *FCT, *FILE, *FLR, *FNTTBL, *FNTRSC, *FORMDF, *FTR, *GSS, *IGCDCT, *IGCSRT, *IGCTBL, *IMGCLG, *IPXD, *JOBD, *JOBQ, *JOBSCD, *JRN, *JRNRCV, *LIB, *LIND, *LOCALE, *MEDDFN, *MENU, *MODD, *MODULE, *MSGF, *MSGQ, *MGTCOL, *M36, *M36CFG, *NODL, *NODGRP, *NTBD, *NWID, *NWSCFG, *NWSD, *OUTQ, *OVL, *PAGDFN, *PAGSEG, *PDFMAP, *PDG, *PGM, *PNLGRP, *PRDAVL, *PRDDFN, *PRDLOD, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *RCT, *S36, *SBSD, *SCHIDX, *SPADCT, *SQLPKG, *SQLUDT, *SQLXSR, *SRVPGM, *SVRSTG, *SSND, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST

*ALL
All objects are shown whose names match the OBJ value.

Examples

WRKOBJ OBJ(X/PAY*) OBJTYPE(*ALL)

Displays the Work with Objects panel showing all objects you have authority to whose names begin with PAY and that are located in library X.

IBM command documentation

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