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

Parameters

OBJ Object

Specifies the name and library of the object whose locks are displayed. This is a required parameter.

Type
*QUAL
Required
Yes
Case
Uppercase
*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

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

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

Suggested / special values: *LIBL, *CURLIB

OBJTYPE Object type

Type
*CHAR
Required
Yes
Length
7
Case
Uppercase

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.

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

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.

Type
*NAME
Required
No
Default
*
Length
10
Case
Uppercase

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.

Type
*CHAR
Required
No
Default
*
Length
6
Case
Uppercase

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.

IBM command documentation

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