427 lines
17 KiB
HTML
427 lines
17 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>Deallocate Object (DLCOBJ)</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="DLCOBJ.Top_Of_Page"></a>
|
||
|
<h2>Deallocate Object (DLCOBJ)</h2>
|
||
|
<table width="100%">
|
||
|
<tr>
|
||
|
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
|
||
|
<b>Threadsafe: </b>Conditional
|
||
|
</td>
|
||
|
<td valign="top" align="right">
|
||
|
<a href="#DLCOBJ.PARAMETERS.TABLE">Parameters</a><br>
|
||
|
<a href="#DLCOBJ.COMMAND.EXAMPLES">Examples</a><br>
|
||
|
<a href="#DLCOBJ.ERROR.MESSAGES">Error messages</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div> <a name="DLCOBJ"></a>
|
||
|
<p>The Deallocate Object (DLCOBJ) command releases the allocations of the specified objects. The objects, allocated earlier by one or more Allocate Object (ALCOBJ) commands, are freed for use by other jobs, or threads. If the DLCOBJ command is used when a lock does not exist, no error occurs.
|
||
|
</p>
|
||
|
<p>If the DLCOBJ command is not used, the objects may be automatically deallocated. Allocated job-scoped locks are automatically released when the job ends. Allocated thread-scoped locks are automatically released when the thread ends. If a thread received a job-scoped lock, the job will continue to hold that lock after the requesting thread ends. Lock-space-scoped locks are not automatically released.
|
||
|
</p>
|
||
|
<p>The DLCOBJ command should not be issued for an object that was not explicitly allocated by the ALCOBJ command. If the DLCOBJ command is used this way, internal locks on the object are released, making the object capable of being deleted.
|
||
|
</p>
|
||
|
<p>To release more than one lock for an object with a single DLCOBJ command, the object name, type, and lock state must be repeated in the list for each lock you want to release.
|
||
|
</p>
|
||
|
<p><b>NOTES:</b>
|
||
|
</p>
|
||
|
<ol>
|
||
|
<li>When deallocating distributed data management (DDM) files and distributed files, additional time is required for the command to complete because of the time required for establishing communication and for deallocating files on remote systems.
|
||
|
</li>
|
||
|
<li>Allocating an object by specifying *LIBL for the object's library, changing the thread's library list, and then attempting to deallocate the object by specifying *LIBL for the object's library can result in issuing the deallocate against the wrong object. This could release internal locks.
|
||
|
</li>
|
||
|
</ol>
|
||
|
<p><b>Restrictions:</b>
|
||
|
</p>
|
||
|
<ol>
|
||
|
<li>This command cannot be used to deallocate a device description, *DEVD, for an advanced program-to-program communications (APPC) device or for an intrasystem (INTRA) device.
|
||
|
</li>
|
||
|
<li>This command can be used to deallocate only the following database *FILE types:
|
||
|
<ul>
|
||
|
<li>Physical files
|
||
|
</li>
|
||
|
<li>Logical files
|
||
|
</li>
|
||
|
<li>Distributed files
|
||
|
<p>This deallocates the piece of the file on each node in the node group.
|
||
|
</p>
|
||
|
</li>
|
||
|
<li>DDM files
|
||
|
<p>This deallocates both the DDM file on the local system and the file on the remote system that is identified in the DDM file.
|
||
|
</p>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
<li>In multithreaded jobs, this command is not threadsafe for distributed files. This command is also not threadsafe for distributed data management (DDM) files of type *SNA.
|
||
|
</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#DLCOBJ.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
|
||
|
<div>
|
||
|
<h3><a name="DLCOBJ.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="7"><a href="#DLCOBJ.OBJ"><b>OBJ</b></a></td>
|
||
|
<td valign="top">Object specifications</td>
|
||
|
<td valign="top">Values (up to 50 repetitions): <i>Element list</i></td>
|
||
|
<td valign="top" rowspan="7">Required, Positional 1</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Element 1: Object</td>
|
||
|
<td valign="top">
|
||
|
<i>Qualified object name</i></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" style="padding-left:10pt">Qualifier 1: Object</td>
|
||
|
<td valign="top"><i>Name</i></td>
|
||
|
</tr><tr>
|
||
|
<td valign="top" style="padding-left:10pt">Qualifier 2: Library</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
||
|
</tr><tr>
|
||
|
<td valign="top">Element 2: Object type</td>
|
||
|
<td valign="top">
|
||
|
*AUTL, *BNDDIR, *CLD, *CRQD, *CSI, *CSPMAP, *CSPTBL, *DEVD, *DTAARA, *DTADCT, *DTAQ, *FCT, *FILE, *FNTRSC, *FNTTBL, *FORMDF, *IMGCLG, *IPXD, *LIB, *LOCALE, *MEDDFN, *MENU, *MGTCOL, *MODULE, *MSGQ, *NODL, *NTBD, *NWSCFG, *NWSD, *OVL, *PAGDFN, *PAGSEG, *PDFMAP, *PDG, *PGM, *PNLGRP, *PSFCFG, *QMFORM, *QMQRY, *QRYDFN, *SBSD, *SCHIDX, *SQLPKG, *SRVPGM, *SSND, *S36, *TIMZON, *USRIDX, *USRQ, *USRSPC, *VLDL, *WSCST</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Element 3: Lock state</td>
|
||
|
<td valign="top">
|
||
|
*SHRRD, *SHRNUP, *SHRUPD, *EXCLRD, *EXCL</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Element 4: Member, if data base file</td>
|
||
|
<td valign="top">
|
||
|
<i>Name</i>, *FIRST</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#DLCOBJ.SCOPE"><b>SCOPE</b></a></td>
|
||
|
<td valign="top">Lock scope</td>
|
||
|
<td valign="top"><b><u>*JOB</u></b>, *THREAD, *LCKSPC</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#DLCOBJ.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div> <a name="DLCOBJ.OBJ"></a>
|
||
|
<h3>Object specifications (OBJ)</h3>
|
||
|
<p>Specifies the qualified name of one or more objects that are deallocated from the job, thread, or lock space, the type of each object specified, the lock state of each object, and the member name (if the object is a database file or DDM file).
|
||
|
</p>
|
||
|
<p>Only some object types can be specified on the Deallocate Object (DLCOBJ) command. Of these, some cannot use all of the lock states.
|
||
|
</p>
|
||
|
<p>This is a required parameter.
|
||
|
</p>
|
||
|
<p>You can specify 50 values for this parameter.
|
||
|
</p>
|
||
|
<p><b>Element 1: Object</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b></b></dt>
|
||
|
<dd>
|
||
|
<p><b>Qualifier 1: Object</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the object.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</dd>
|
||
|
<dt><b></b></dt>
|
||
|
<dd>
|
||
|
<p><b>Qualifier 2: 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>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Element 2: Object type</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>object-type</i></b></dt>
|
||
|
<dd>Specify the type of object to be deallocated. Refer to the figure Valid Lock States by Object Type for more information.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Element 3: Lock state</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>*SHRRD</b></dt>
|
||
|
<dd>The lock state is shared for read.
|
||
|
</dd>
|
||
|
<dt><b>*SHRNUP</b></dt>
|
||
|
<dd>The lock state is shared, no update.
|
||
|
</dd>
|
||
|
<dt><b>*SHRUPD</b></dt>
|
||
|
<dd>The lock state is shared for update.
|
||
|
</dd>
|
||
|
<dt><b>*EXCLRD</b></dt>
|
||
|
<dd>The lock state is exclusive, allow read.
|
||
|
</dd>
|
||
|
<dt><b>*EXCL</b></dt>
|
||
|
<dd>The lock state is exclusive, no read.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Element 4: Member, if data base file</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<b>Note: </b>The following values can only be specified if the object type is a database file.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>*FIRST</b></dt>
|
||
|
<dd>The first member of the database file is deallocated.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the member to be allocated. If the specified file is a logical file, the physical file members associated with the members of the logical file are also deallocated.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p>An explanation of how to specify multiple locks on an object, locking device descriptions, or the type objects that can be allocated, is in the CL information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
|
||
|
</p>
|
||
|
<p>If a database file member is deallocated, the first occurrence of the file in the library list is found and that file is searched for the specified member. If a file of the same name farther down on the library list contains the member, but the first file does not, the member is not found. If the member name is not specified for a database file, the member name defaults to *FIRST and the member that was created first in the file is deallocated.
|
||
|
</p>
|
||
|
<table border="1">
|
||
|
<caption align="bottom"><b>Figure: Valid Lock States by Object Type</b>
|
||
|
</caption>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<p>
|
||
|
<pre>
|
||
|
Object Lock States
|
||
|
Type Object Type Definition *EXCL *EXCLRD *SHRUPD *SHRNUP *SHRRD
|
||
|
------- ---------------------- ----- ------- ------- ------- ------
|
||
|
*AUTL Authorization List x x x x x
|
||
|
*BNDDIR Binding directory x x x
|
||
|
*CLD C Locale description x x x x x
|
||
|
*CRQD Change request x x x x x
|
||
|
description
|
||
|
*CSI Communications side x x x x x
|
||
|
information
|
||
|
*DEVD Device Description x x
|
||
|
*DTAARA Data area x x x x x
|
||
|
*DTADCT Data dictionary x x x x x
|
||
|
*DTAQ Data queue x x x x x
|
||
|
*FCT Forms control table x x x x x
|
||
|
*FILE File x x x x x
|
||
|
*FNTRSC Font resource x x x x x
|
||
|
*FNTTBL Font mapping table x x x x x
|
||
|
*FORMDF Form definition x x x x x
|
||
|
*IMGCLG Image catalog x x x x x
|
||
|
*IPXD Internet packet x x x x x
|
||
|
exchange description
|
||
|
*LIB Library x x x x
|
||
|
*LOCALE Locale space object x x x x x
|
||
|
*MEDDFN Media definition x x x x x
|
||
|
*MENU Menu x x x x x
|
||
|
*MGTCOL Management collection x x x x x
|
||
|
*MODULE Module x x x
|
||
|
*MSGQ Message queue x x
|
||
|
*NODL Node list x x x x x
|
||
|
*NTBD NetBIOS description x x x x x
|
||
|
*NWSCFG Network server x x x x x
|
||
|
configuration
|
||
|
*NWSD Network server x x x x x
|
||
|
description
|
||
|
*OVL Overlay x x x x x
|
||
|
*PAGDFN Page definition x x x x x
|
||
|
*PAGSEG Page segment x x x x x
|
||
|
*PDFMAP PDF Map x x x x x
|
||
|
*PDG Print descriptor group x x x x x
|
||
|
*PGM Program x x x
|
||
|
*PNLGRP Panel group x x x x x
|
||
|
*PSFCFG Print service facility x x x x x
|
||
|
configuration
|
||
|
*QMFORM Query management form x x x x x
|
||
|
*QMQRY Query management query x x x x x
|
||
|
*QRYDFN Query definition x x x x x
|
||
|
*S36 S/36 machine x x x x x
|
||
|
description
|
||
|
*SBSD Subsystem description x
|
||
|
*SCHIDX Search index x x x x x
|
||
|
*SQLPKG Structured Query x x x x x
|
||
|
Language package
|
||
|
*SRVPGM Service program x x x x x
|
||
|
*SSND Session description x x x x x
|
||
|
*TIMZON Time zone description x x x x x
|
||
|
*USRIDX User index x x x x x
|
||
|
*USRQ User queue x x x x x
|
||
|
*USRSPC User space x x x x x
|
||
|
*VLDL Validation list object x x x x x
|
||
|
*WSCST Workstation x x x x x
|
||
|
customizing object
|
||
|
<b>'x' indicates the lock state is allowed for the object type.</b>
|
||
|
</pre>
|
||
|
</p>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#DLCOBJ.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="DLCOBJ.SCOPE"></a>
|
||
|
<h3>Lock scope (SCOPE)</h3>
|
||
|
<p>Specify the scope for this lock request.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*JOB</u></b></dt>
|
||
|
<dd>The lock is scoped to the job.
|
||
|
</dd>
|
||
|
<dt><b>*LCKSPC</b></dt>
|
||
|
<dd>The lock is scoped to the lock space attached to the current thread. If no lock space is attached, the lock is scoped to the job.
|
||
|
</dd>
|
||
|
<dt><b>*THREAD</b></dt>
|
||
|
<dd>The lock is scoped to the thread.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p>All objects types supported by the OBJ parameter support job-scoped locks. All object types supported by the OBJ parameter support lock-space-scoped locks. For DDM objects with a lock-space-scope, the lock on the remote system is scoped to the job. To determine if an object type supports thread-scoped locks refer to the figure Object Types that Support Thread Scope Locks.
|
||
|
</p>
|
||
|
<p>The lock scope must match the scope of the locks currently allocated for the job or thread.
|
||
|
</p>
|
||
|
<table border="1">
|
||
|
<caption align="bottom"><b>Figure: Object Types that Support Thread Scope Locks</b>
|
||
|
</caption>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<p>
|
||
|
<pre>
|
||
|
Object Thread
|
||
|
Type Object Type Definition Scope
|
||
|
------- ------------------------------------ ------
|
||
|
*AUTL Authorization list
|
||
|
*BNDDIR Binding directory
|
||
|
*CLD C Locale description
|
||
|
*CRQD Change request description
|
||
|
*CSI Communications side information
|
||
|
*DEVD Device Description x
|
||
|
*DTAARA Data area x
|
||
|
*DTADCT Data dictionary x
|
||
|
*DTAQ Data queue x
|
||
|
*FCT Forms control table
|
||
|
*FILE File x
|
||
|
*FNTRSC Font resource
|
||
|
*FNTTBL Font mapping table
|
||
|
*FORMDF Form definition
|
||
|
*IMGCLG Image catalog x
|
||
|
*IPXD Internet packet exchange description x
|
||
|
*LIB Library x
|
||
|
*LOCALE Locale space object x
|
||
|
*MEDDFN Media definition
|
||
|
*MENU Menu
|
||
|
*MGTCOL Management collection x
|
||
|
*MODULE Module
|
||
|
*MSGQ Message queue x
|
||
|
*NODL Node list
|
||
|
*NTBD NetBIOS description x
|
||
|
*NWSCFG Network server configuration
|
||
|
*NWSD Network server description x
|
||
|
*OVL Overlay
|
||
|
*PAGDFN Page definition
|
||
|
*PAGSEG Page segment
|
||
|
*PDFMAP PDF Map x
|
||
|
*PDG Print descriptor group
|
||
|
*PGM Program x
|
||
|
*PNLGRP Panel group
|
||
|
*PSFCFG Print service facility configuration
|
||
|
*QMFORM Query management form
|
||
|
*QMQRY Query management query
|
||
|
*QRYDFN Query definition
|
||
|
*S36 S/36 machine description
|
||
|
*SBSD Subsystem description x
|
||
|
*SCHIDX Search index
|
||
|
*SQLPKG Structured Query Language package
|
||
|
*SRVPGM Service program x
|
||
|
*SSND Session description
|
||
|
*TIMZON Time zone description x
|
||
|
*USRIDX User index x
|
||
|
*USRQ User queue x
|
||
|
*USRSPC User space x
|
||
|
*VLDL Validation list object x
|
||
|
*WSCST Workstation customizing object
|
||
|
<b>'x' indicates a thread-scoped lock is allowed for the object type.</b>
|
||
|
</pre>
|
||
|
</p>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#DLCOBJ.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="DLCOBJ.COMMAND.EXAMPLES">Examples</a> </h3>
|
||
|
<p><b>Example 1: Deallocate a File for the Job</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
DLCOBJ OBJ((LIBB/FILEA *FILE *SHRRD))
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command releases the shared-for-read allocation of the first member of file FILEA in library LIBB that was held by the job.
|
||
|
</p>
|
||
|
<p><b>Example 2: Deallocate a Data Area for the Thread</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
DLCOBJ OBJ((LIBY/DATAAREAX *DTAARA *SHRRD )) SCOPE(*THREAD)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command releases the shared-for-read allocation of the data area DATAAREAX in library LIBY that was held by the thread.
|
||
|
</p>
|
||
|
<p><b>Example 3: Deallocate File for Lock Space</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
DLCOBJ OBJ((LIBB/FILEA *FILE *EXCL MEMBERA))
|
||
|
SCOPE(*LCKSPC)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command deallocates member MEMBERA of file FILEA in library LIBB from the lock space attached to the current thread.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#DLCOBJ.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="DLCOBJ.ERROR.MESSAGES">Error messages</a> </h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>CPF1005</b></dt>
|
||
|
<dd>Objects not deallocated.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#DLCOBJ.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|