ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/dltqry.htm

169 lines
5.1 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Delete Query (DLTQRY)</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="DLTQRY.Top_Of_Page"></a>
<h2>Delete Query (DLTQRY)</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="#DLTQRY.PARAMETERS.TABLE">Parameters</a><br>
<a href="#DLTQRY.COMMAND.EXAMPLES">Examples</a><br>
<a href="#DLTQRY.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="DLTQRY"></a>
<p>The Delete Query (DLTQRY) command deletes an existing query definition from a library.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DLTQRY.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="DLTQRY.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="#DLTQRY.QRY"><b>QRY</b></a></td>
<td valign="top">Query</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: Query</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, *USRLIBL, *ALL, *ALLUSR</td>
</tr></table>
<table width="100%">
<tr><td align="right"><a href="#DLTQRY.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="DLTQRY.QRY"></a>
<h3>Query (QRY Parameter)</h3>
<p>Specifies the qualified name of the query definition being deleted.
</p>
<dl>
<dt><b><i>query-name</i></b></dt>
<dd>Specify the name of the query definition being deleted.
</dd>
</dl>
<p>This is a required parameter.
</p>
<p>The name of the query definition can be qualified by one of the following library values:
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched until the first match is found.
</dd>
</dl>
<dl>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
</dd>
<dt><b>*USRLIBL</b></dt>
<dd>Only the libraries in the user portion of the job's library list are searched.
</dd>
</dl>
<dl>
<dt><b>*ALL</b></dt>
<dd>All libraries in the system, including QSYS, are searched.
</dd>
</dl>
<dl>
<dt><b>*ALLUSR</b></dt>
<dd>All user libraries are searched. All libraries with names that do not begin with the letter Q are searched except for the following:
<p>
<pre>
#CGULIB #DSULIB #SEULIB
#COBLIB #RPGLIB
#DFULIB #SDALIB
</pre>
</p>
<p>Although the following Qxxx libraries are provided by IBM, they typically contain user data that changes frequently. Therefore, these libraries are considered user libraries and are also searched:
</p>
<p>
<pre>
QDSNX QRCLxxxxx QUSRIJS QUSRVxRxMx
QGPL QSRVAGT QUSRINFSKR
QGPL38 QSYS2 QUSRNOTES
QMGTC QSYS2xxxxx QUSROND
QMGTC2 QS36F QUSRPOSGS
QMPGDATA QUSER38 QUSRPOSSA
QMQMDATA QUSRADSM QUSRPYMSVR
QMQMPROC QUSRBRM QUSRRDARS
QPFRDATA QUSRDIRCL QUSRSYS
QRCL QUSRDIRDB QUSRVI
</pre>
</p>
<ol>
<li>'xxxxx' is the number of a primary auxiliary storage pool (ASP).
</li>
<li>A different library name, in the format QUSRVxRxMx, can be created by the user for each previous release supported by IBM to contain any user commands to be compiled in a CL program for the previous release. For the QUSRVxRxMx user library, VxRxMx is the version, release, and modification level of a previous release that IBM continues to support.
</li>
</ol>
</dd>
</dl>
<dl>
<dt><b><i>library-name</i></b></dt>
<dd>Specify the name of the library to be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#DLTQRY.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="DLTQRY.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Deleting a Query Definition</b>
</p>
<p>
<pre>
DLTQRY QRY(LIB1/MYDEF)
</pre>
</p>
<p>This command deletes query definition MYDEF from library LIB1.
</p>
<p><b>Example 2: Deleting a Query Definition from All Libraries</b>
</p>
<p>
<pre>
DLTQRY QRY(*ALL/MYDEF)
</pre>
</p>
<p>This command deletes all the query definitions named MYDEF on the system.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DLTQRY.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="DLTQRY.ERROR.MESSAGES">Error messages</a> </h3>
<p>None
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#DLTQRY.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>