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

242 lines
9.9 KiB
HTML
Raw Permalink 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>Work with Libraries (WRKLIB)</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="WRKLIB.Top_Of_Page"></a>
<h2>Work with Libraries (WRKLIB)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>Interactive environments (*INTERACT *IPGM *IREXX *EXEC)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#WRKLIB.PARAMETERS.TABLE">Parameters</a><br>
<a href="#WRKLIB.COMMAND.EXAMPLES">Examples</a><br>
<a href="#WRKLIB.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="WRKLIB"></a>
<p>The Work with Libraries (WRKLIB) command shows a list of libraries and allows you to copy, delete, display, print, save, restore, change, and clear specified libraries.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>Only the libraries to which you have some authority will be shown on the display.
</li>
<li>To perform operations on the libraries, you must have use (*USE) authority to the command used by the operation, and the appropriate authority to the libraries on which the operation is to be performed.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKLIB.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="WRKLIB.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="2"><a href="#WRKLIB.LIB"><b>LIB</b></a></td>
<td valign="top">Library</td>
<td valign="top"><i>Qualifier list</i></td>
<td valign="top" rowspan="2">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Library</td>
<td valign="top"><i>Generic name, name</i>, <b><u>*LIBL</u></b>, *CURLIB, *USRLIBL, *ALLUSR, *ALL</td>
</tr><tr>
<td valign="top"><a href="#WRKLIB.ASP"><b>ASP</b></a></td>
<td valign="top">ASP number</td>
<td valign="top">1-32, <b><u>*ALL</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#WRKLIB.ASPDEV"><b>ASPDEV</b></a></td>
<td valign="top">ASP device</td>
<td valign="top"><i>Name</i>, <b><u>*</u></b>, *SYSBAS, *CURASPGRP</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#WRKLIB.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="WRKLIB.LIB"></a>
<h3>Library (LIB)</h3>
<p>Specifies the libraries to be shown on the Work with Libraries display.
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the thread's library list are shown.
<p>
<b>Note: </b>A library can appear more than once in the list of libraries shown on the Work with Libraries display if that library is in the system portion or user portion of the library list and is also one of the product libraries or the current library for the thread.
</p>
</dd>
<dt><b>*USRLIBL</b></dt>
<dd>If a current library entry exists in the library list for the current thread, the current library and the libraries in the user portion of the library list are shown. If there is no current library entry, only the libraries in the user portion of the library list are shown.
<p>
<b>Note: </b>A library can appear more than once in the list of libraries shown on the Work with Libraries display if that library is in the user portion of the library list and is also the current library for the thread.
</p>
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is shown. If no library is specified as the current library for the thread, the QGPL library is shown.
</dd>
<dt><b>*ALL</b></dt>
<dd>All the libraries in the auxiliary storage pools (ASPs) specified by the <b>ASP number (ASP)</b> parameter or the <b>ASP device (ASPDEV)</b> parameter are shown.
</dd>
<dt><b>*ALLUSR</b></dt>
<dd>All user libraries are displayed. All libraries with names that do not begin with the letter Q are displayed except for the following:
</dd>
</dl>
<p>
<pre>
#CGULIB #DSULIB #SEULIB
#COBLIB #RPGLIB
#DFULIB #SDALIB
</pre>
</p>
<dl>
<dt><b></b></dt>
<dd>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 displayed:
</dd>
</dl>
<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>
<dl>
<dt><b><i>generic-name</i></b></dt>
<dd>Specify the generic name of the libraries to be shown. A generic name is a character string that contains one or more characters followed by an asterisk (*). If a generic name is specified, all libraries that have names with the same prefix as the generic name are shown.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the library to be shown.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKLIB.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKLIB.ASP"></a>
<h3>ASP number (ASP)</h3>
<p>Specifies the auxiliary storage pool (ASP) for the libraries that should be shown on the Work with Libraries display. This parameter is ignored when a value of *LIBL, *CURLIB or *USRLIBL is entered for the library parameter. If a number is specified for this parameter, the <b>ASP device (ASPDEV)</b> parameter value must be *.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>All ASPs defined by the value for the <b>ASP device (ASPDEV)</b> parameter will be searched.
</dd>
<dt><b><i>1-32</i></b></dt>
<dd>Specify the number of the system or basic user ASP to be searched. ASP 1 is the system ASP, which is always configured. Basic user ASPs are 2-32, and must designate an ASP that is configured on the system. For information on configuring an ASP, see the Backup and Recovery book, SC41-5304.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKLIB.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKLIB.ASPDEV"></a>
<h3>ASP device (ASPDEV)</h3>
<p>Specifies the auxiliary storage pool (ASP) device name where storage for the library being displayed is allocated. If the library is in an ASP that is not part of the thread's library name space, this parameter must be specified to ensure the correct library is displayed. If a number is specified for the <b>ASP number (ASP)</b> parameter, the ASPDEV parameter value must be *.
</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 find the library. This includes the system ASP (ASP 1), all defined basic user ASPs (ASPs 2-32), and, if the thread has an ASP group, the primary and secondary ASPs in the thread's ASP group.
</dd>
</dl>
<dl>
<dt><b>*SYSBAS</b></dt>
<dd>The system ASP (ASP 1) and all defined basic user ASPs (ASPs 2-32) will be searched to find the library. No primary or secondary ASPs will be searched, even if the thread has an ASP group.
</dd>
</dl>
<dl>
<dt><b>*CURASPGRP</b></dt>
<dd>If the thread has an ASP group, the primary and secondary ASPs in the thread's ASP group will be searched to find the library. The system ASP (ASP 1) and defined basic user ASPs (ASPs 2-32) will not be searched. If no ASP group is associated with the thread an error will be issued.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the device name of the primary or secondary ASP to be searched. The primary or secondary ASP must have been activated (by varying on the ASP device) and have a status of 'Available'. The system ASP (ASP 1) and configured basic user ASPs (ASPs 2-32) will not be searched.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKLIB.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="WRKLIB.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
WRKLIB LIB(QJ*) ASP(2)
</pre>
</p>
<p>This command allows you to work with a list of libraries in auxiliary storage pool (ASP) 2 that begin with the letters 'QJ'.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKLIB.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="WRKLIB.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF218C</b></dt>
<dd>&amp;1 not a primary or secondary ASP.
</dd>
<dt><b>CPF2302</b></dt>
<dd>Device &amp;1 not found in ASP group &amp;2.
</dd>
<dt><b>CPF9809</b></dt>
<dd>Library &amp;1 cannot be accessed.
</dd>
<dt><b>CPF9814</b></dt>
<dd>Device &amp;1 not found.
</dd>
<dt><b>CPF9820</b></dt>
<dd>Not authorized to use library &amp;1.
</dd>
<dt><b>CPF9825</b></dt>
<dd>Not authorized to device &amp;1.
</dd>
<dt><b>CPF9833</b></dt>
<dd>*CURASPGRP or *ASPGRPPRI specified and thread has no ASP group.
</dd>
<dt><b>CPFB8ED</b></dt>
<dd>Device description &amp;1 not correct for operation.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKLIB.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>