Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Work with Object Locks (WRKOBJLCK) command allows you to work with the object lock requests in the system for a specified object. You can work with both held locks and locks waiting to be applied.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
OBJ | Object | Qualified object name | Required, Positional 1 |
Qualifier 1: Object | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
OBJTYPE | Object type | *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, *SRVPGM, *SSND, *S36, *TBL, *TIMZON, *USRIDX, *USRPRF, *USRQ, *USRSPC, *VLDL, *WSCST | Required, Positional 2 |
MBR | Member | Name, *NONE, *FIRST, *ALL | Optional, Positional 3 |
ASPDEV | ASP device | Name, *, *SYSBAS | Optional |
OUTPUT | Output | Optional |
Top |
Specifies the name and library of the object for which locks are being displayed.
This is a required parameter.
Qualifier1: Object
Qualifier2: Library
If a file member is specified for a file, and the file's library value is *LIBL, the first occurrence of the file in the thread's library search list is searched for the member. For object types that exist only in library QSYS (for example, *DEVD), QSYS and *LIBL are the only library names that are accepted. When specifying a value other than * for the ASP device (ASPDEV), *LIBL can not be specified.
Top |
Specifies the object type of the object for which locks are being displayed. Specify the predefined value that identifies the object type.
This is a required parameter.
Top |
Specifies the member name of a database file. This parameter is valid only when a database file has been specified for the Object (OBJ) parameter.
Top |
Specifies the auxiliary storage pool (ASP) device name where the library that contains the object (specified for the Object (OBJ) parameter) is located. If the object's library resides in an ASP that is not part of the library name space associated with the thread, this parameter must be specified to ensure the correct object is used as the target of the operation.
Top |
Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
Top |
Example 1: Printing Object Lock Information for a File
WRKOBJLCK OBJ(*LIBL/LOCKEDFILE) OBJTYPE(*FILE) MBR(LOCKEDMBR) OUTPUT(*PRINT)
This command prints the lock information for the member named LOCKEDMBR in the file named LOCKEDFILE. The file is located using the library list.
Example 2: Working With Object Locks for a Library on an Independent ASP
WRKOBJLCK OBJ(QSYS/LIBNAME) OBJTYPE(*LIB) ASPDEV(PRODXX)
This command allows you to work with the lock information for the library LIBNAME located on the independent auxiliary storage pool (ASP) device PRODXX.
Top |
*ESCAPE Messages
Top |