318 lines
12 KiB
HTML
318 lines
12 KiB
HTML
|
|
||
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
|
<html>
|
||
|
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
|
<title>Work with Object Locks (WRKOBJLCK)</title>
|
||
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
||
|
</head>
|
||
|
<body bgcolor="white">
|
||
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<a name="WRKOBJLCK.Top_Of_Page"></a>
|
||
|
<h2>Work with Object Locks (WRKOBJLCK)</h2>
|
||
|
<table width="100%">
|
||
|
<tr>
|
||
|
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
|
||
|
<b>Threadsafe: </b>No
|
||
|
</td>
|
||
|
<td valign="top" align="right">
|
||
|
<a href="#WRKOBJLCK.PARAMETERS.TABLE">Parameters</a><br>
|
||
|
<a href="#WRKOBJLCK.COMMAND.EXAMPLES">Examples</a><br>
|
||
|
<a href="#WRKOBJLCK.ERROR.MESSAGES">Error messages</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div> <a name="WRKOBJLCK"></a>
|
||
|
<p>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.
|
||
|
</p>
|
||
|
<p><b>Restrictions:</b>
|
||
|
</p>
|
||
|
<ol>
|
||
|
<li>The user must have *EXECUTE authority to the library containing the object and to the ASP device description. Otherwise, the user must have *JOBCTL special authority.
|
||
|
</li>
|
||
|
<li>This command does not show record locks for database files.
|
||
|
</li>
|
||
|
<li>Work station message queues cannot be allocated, and therefore, they will not have any locks. A work station message queue is associated with a work station device description of the same name. Therefore, to determine why an operation that requires the work station message queue to be allocated does not work, the user should see if there are any locks on the device description of the same name.
|
||
|
</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#WRKOBJLCK.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
|
||
|
<div>
|
||
|
<h3><a name="WRKOBJLCK.PARAMETERS.TABLE">Parameters</a></h3>
|
||
|
<table border="1" cellpadding="4" cellspacing="0">
|
||
|
<!-- col1="10" col2="15" col3="30" col4="10" -->
|
||
|
<tr>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
|
||
|
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" rowspan="3"><a href="#WRKOBJLCK.OBJ"><b>OBJ</b></a></td>
|
||
|
<td valign="top">Object</td>
|
||
|
<td valign="top"><i>Qualified object name</i></td>
|
||
|
<td valign="top" rowspan="3">Required, Positional 1</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Qualifier 1: Object</td>
|
||
|
<td valign="top"><i>Name</i></td>
|
||
|
</tr><tr>
|
||
|
<td valign="top">Qualifier 2: Library</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
||
|
</tr><tr>
|
||
|
<td valign="top"><a href="#WRKOBJLCK.OBJTYPE"><b>OBJTYPE</b></a></td>
|
||
|
<td valign="top">Object type</td>
|
||
|
<td valign="top">*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</td>
|
||
|
<td valign="top">Required, Positional 2</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#WRKOBJLCK.MBR"><b>MBR</b></a></td>
|
||
|
<td valign="top">Member</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>*NONE</u></b>, *FIRST, *ALL</td>
|
||
|
<td valign="top">Optional, Positional 3</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#WRKOBJLCK.ASPDEV"><b>ASPDEV</b></a></td>
|
||
|
<td valign="top">ASP device</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>*</u></b>, *SYSBAS</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#WRKOBJLCK.OUTPUT"><b>OUTPUT</b></a></td>
|
||
|
<td valign="top">Output</td>
|
||
|
<td valign="top"><b><u>*</u></b>, *PRINT</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#WRKOBJLCK.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div> <a name="WRKOBJLCK.OBJ"></a>
|
||
|
<h3>Object (OBJ)</h3>
|
||
|
<p>Specifies the name and library of the object for which locks are being displayed.
|
||
|
</p>
|
||
|
<p>This is a required parameter.
|
||
|
</p>
|
||
|
<p><b>Qualifier1: Object</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the object.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Qualifier2: Library</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*LIBL</u></b></dt>
|
||
|
<dd>All libraries in the thread's library list are searched until a match is found.
|
||
|
</dd>
|
||
|
<dt><b>*CURLIB</b></dt>
|
||
|
<dd>The current library for the thread is used to locate the object. If no library is specified as the current library for the thread, the QGPL library is used.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the library where the object is located.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p>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 <b>ASP device (ASPDEV)</b>, *LIBL can not be specified.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#WRKOBJLCK.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="WRKOBJLCK.OBJTYPE"></a>
|
||
|
<h3>Object type (OBJTYPE)</h3>
|
||
|
<p>Specifies the object type of the object for which locks are being displayed. Specify the predefined value that identifies the object type.
|
||
|
</p>
|
||
|
<p>This is a required parameter.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>Object-type</i></b></dt>
|
||
|
<dd>Specify the object type. Refer to the <b>Object type (OBJTYPE)</b> parameter of the Work with Objects (WRKOBJ) command for more information.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#WRKOBJLCK.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="WRKOBJLCK.MBR"></a>
|
||
|
<h3>Member (MBR)</h3>
|
||
|
<p>Specifies the member name of a database file. This parameter is valid only when a database file has been specified for the <b>Object (OBJ)</b> parameter.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>No member locks are displayed, but file level locks are displayed. (The display of member locks for all the members in the file can be requested from the file locks display.)
|
||
|
</dd>
|
||
|
<dt><b>*FIRST</b></dt>
|
||
|
<dd>The first member in the named database file is displayed.
|
||
|
</dd>
|
||
|
<dt><b>*ALL</b></dt>
|
||
|
<dd>Member locks for all the members in the database file are displayed.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the database file member for which locks are displayed.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#WRKOBJLCK.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="WRKOBJLCK.ASPDEV"></a>
|
||
|
<h3>ASP device (ASPDEV)</h3>
|
||
|
<p>Specifies the auxiliary storage pool (ASP) device name where the library that contains the object (specified for the <b>Object (OBJ)</b> 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.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*</u></b></dt>
|
||
|
<dd>The ASPs that are currently part of the thread's library name space will be searched to locate the object. This includes the system ASP (ASP number 1), all configured basic user ASPs (ASP numbers 2-32), and, if the thread has an ASP group, all independent ASPs in the ASP group.
|
||
|
</dd>
|
||
|
<dt><b>*SYSBAS</b></dt>
|
||
|
<dd>The system ASP and all basic user ASPs will be searched to locate the object. No independent ASPs will be searched, even if the thread has an ASP group.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>The device name of the independent ASP to be searched to locate the object. The independent ASP must have been activated (by varying on the ASP device) and have a status of 'Active' or 'Available'. The system ASP and basic user ASPs will not be searched.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#WRKOBJLCK.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="WRKOBJLCK.OUTPUT"></a>
|
||
|
<h3>Output (OUTPUT)</h3>
|
||
|
<p>Specifies whether the output from the command is displayed at the requesting work station or printed with the job's spooled output.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*</u></b></dt>
|
||
|
<dd>The output is displayed for interactive jobs or printed with the job's spooled output for non-interactive jobs.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*PRINT</b></dt>
|
||
|
<dd>The output is printed with the job's spooled output.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#WRKOBJLCK.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="WRKOBJLCK.COMMAND.EXAMPLES">Examples</a> </h3>
|
||
|
<p><b>Example 1: Printing Object Lock Information for a File</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
WRKOBJLCK OBJ(*LIBL/LOCKEDFILE) OBJTYPE(*FILE)
|
||
|
MBR(LOCKEDMBR) OUTPUT(*PRINT)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command prints the lock information for the member named LOCKEDMBR in the file named LOCKEDFILE. The file is located using the library list.
|
||
|
</p>
|
||
|
<p><b>Example 2: Working With Object Locks for a Library on an Independent ASP</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
WRKOBJLCK OBJ(QSYS/LIBNAME) OBJTYPE(*LIB) ASPDEV(PRODXX)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command allows you to work with the lock information for the library LIBNAME located on the independent auxiliary storage pool (ASP) device PRODXX.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#WRKOBJLCK.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="WRKOBJLCK.ERROR.MESSAGES">Error messages</a> </h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>CPFB8ED</b></dt>
|
||
|
<dd>Device description &1 not correct for operation.
|
||
|
</dd>
|
||
|
<dt><b>CPF0919</b></dt>
|
||
|
<dd>Library in library list damaged.
|
||
|
</dd>
|
||
|
<dt><b>CPF0924</b></dt>
|
||
|
<dd>Cannot use library in library list.
|
||
|
</dd>
|
||
|
<dt><b>CPF0935</b></dt>
|
||
|
<dd>Cannot use member name for object type *&2.
|
||
|
</dd>
|
||
|
<dt><b>CPF0939</b></dt>
|
||
|
<dd>Object &3 type &2 was not found in library &4.
|
||
|
</dd>
|
||
|
<dt><b>CPF0948</b></dt>
|
||
|
<dd>Member &1 file &3 in library &4 not found.
|
||
|
</dd>
|
||
|
<dt><b>CPF095B</b></dt>
|
||
|
<dd>Value for ASPDEV not valid with special value for library.
|
||
|
</dd>
|
||
|
<dt><b>CPF0950</b></dt>
|
||
|
<dd>&2 &3 in library &4 not found.
|
||
|
</dd>
|
||
|
<dt><b>CPF0951</b></dt>
|
||
|
<dd>QSYS only valid library for object type &2.
|
||
|
</dd>
|
||
|
<dt><b>CPF0952</b></dt>
|
||
|
<dd>Library &4 not found for &2 &3.
|
||
|
</dd>
|
||
|
<dt><b>CPF0953</b></dt>
|
||
|
<dd>Library in library list previously deleted.
|
||
|
</dd>
|
||
|
<dt><b>CPF0958</b></dt>
|
||
|
<dd>&2 &3 in library &4 saved with storage freed.
|
||
|
</dd>
|
||
|
<dt><b>CPF0988</b></dt>
|
||
|
<dd>Library &4 damaged.
|
||
|
</dd>
|
||
|
<dt><b>CPF1093</b></dt>
|
||
|
<dd>Override of file device type not valid.
|
||
|
</dd>
|
||
|
<dt><b>CPF3285</b></dt>
|
||
|
<dd>Damage found on file &1 in library &3.
|
||
|
</dd>
|
||
|
<dt><b>CPF9803</b></dt>
|
||
|
<dd>Cannot allocate object &2 in library &3.
|
||
|
</dd>
|
||
|
<dt><b>CPF9804</b></dt>
|
||
|
<dd>Object &2 in library &3 damaged.
|
||
|
</dd>
|
||
|
<dt><b>CPF9814</b></dt>
|
||
|
<dd>Device &1 not found.
|
||
|
</dd>
|
||
|
<dt><b>CPF9820</b></dt>
|
||
|
<dd>Not authorized to use library &1.
|
||
|
</dd>
|
||
|
<dt><b>CPF9825</b></dt>
|
||
|
<dd>Not authorized to device &1.
|
||
|
</dd>
|
||
|
<dt><b>CPF9845</b></dt>
|
||
|
<dd>Error occurred while opening file &1.
|
||
|
</dd>
|
||
|
<dt><b>CPF9846</b></dt>
|
||
|
<dd>Error while processing file &1 in library &2.
|
||
|
</dd>
|
||
|
<dt><b>CPF9847</b></dt>
|
||
|
<dd>Error occurred while closing file &1 in library &2.
|
||
|
</dd>
|
||
|
<dt><b>CPF9850</b></dt>
|
||
|
<dd>Override of printer file &1 not allowed.
|
||
|
</dd>
|
||
|
<dt><b>CPF9851</b></dt>
|
||
|
<dd>Overflow value for file &1 in &2 too small.
|
||
|
</dd>
|
||
|
<dt><b>CPF9871</b></dt>
|
||
|
<dd>Error occurred while processing.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#WRKOBJLCK.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|