Command reference / object
WRKOBJLCK
Work with Object Locks
Lets you work with the object lock requests in the system for a specified object, including both held locks and locks waiting to be applied.
Allowed environments: *ALL.
Positional parameters: 3.
Restrictions
- You need *EXECUTE authority to the library containing the object and to the ASP device description, or else *JOBCTL special authority.
- Record locks for database files are not shown.
- Work station message queues cannot be allocated, so they have no locks; to investigate, check the device description of the same name.
Parameters
OBJ
Object
Specifies the name and library of the object whose locks are displayed. This is a required parameter.
*LIBL- All libraries in the thread's library list are searched until a match is found.
*CURLIB- The thread's current library is used; if none is set, QGPL is used.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Object
Object
Library
Library
Suggested / special values:
*LIBL, *CURLIB
OBJTYPE
Object type
Allowed values:
*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, *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, *NODL, *NTBD, *NWID, *NWSCFG, *NWSD, *OUTQ, *OVL, *PAGDFN, *PAGSEG, *PDFMAP, *PDG, *PGM, *PNLGRP, *PRDAVL, *PRDDFN, *PRDLOD, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *SBSD, *SCHIDX, *SPADCT, *SQLPKG, *SQLUDT, *SQLXSR, *SRVPGM, *SSND, *S36, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST
MBR
Member
Specifies the database file member whose locks are displayed. Valid only when a database file is specified for OBJ.
Suggested / special values:
*NONE, *FIRST, *ALL
*NONE- No member locks are displayed, but file-level locks are displayed.
*FIRST- The first member in the named database file is displayed.
*ALL- Member locks for all members in the database file are displayed.
ASPDEV
ASP device
Specifies the ASP device name where the object's library is located. It must be specified if the library is in an ASP that is not part of the thread's library name space.
Suggested / special values:
*, *SYSBAS
*- The ASPs in the thread's library name space are searched.
*SYSBAS- The system ASP and all basic user ASPs are searched; no independent ASPs are searched.
OUTPUT
Output
Specifies whether the command output is displayed at the requesting workstation or printed with the job's spooled output.
Allowed values:
*, *PRINT
*- Displayed for interactive jobs, or printed with the job's spooled output for non-interactive jobs.
*PRINT- Printed with the job's spooled output.
Examples
WRKOBJLCK OBJ(*LIBL/LOCKEDFILE) OBJTYPE(*FILE) MBR(LOCKEDMBR) OUTPUT(*PRINT)
Prints the lock information for member LOCKEDMBR in file LOCKEDFILE, which is located using the library list.
Generated from os/cl/catalog/WRKOBJLCK.json and os/cl/help/WRKOBJLCK.json.