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

216 lines
7.4 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 Module (WRKMOD)</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="WRKMOD.Top_Of_Page"></a>
<h2>Work with Module (WRKMOD)</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="#WRKMOD.PARAMETERS.TABLE">Parameters</a><br>
<a href="#WRKMOD.COMMAND.EXAMPLES">Examples</a><br>
<a href="#WRKMOD.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="WRKMOD"></a>
<p>The Work with Modules (WRKMOD) command allows you to display and work with a list of modules from one or more libraries.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>Only the libraries to which you have use (*USE) authority are searched.
</li>
<li>Only the modules to which you have read (*READ) authority are shown on the display.
</li>
<li>To perform operations on the modules, you must have *USE authority to the command used by the operation, and the appropriate authority to the modules on which the operation is to be performed.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKMOD.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="WRKMOD.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="#WRKMOD.MODULE"><b>MODULE</b></a></td>
<td valign="top">Module</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: Module</td>
<td valign="top"><i>Generic name, name</i>, *ALL</td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB, *USRLIBL, *ALLUSR, *ALL</td>
</tr><tr>
<td valign="top"><a href="#WRKMOD.MODATR"><b>MODATR</b></a></td>
<td valign="top">Module attribute</td>
<td valign="top"><b><u>*ALL</u></b>, CBLLE, CLE, CLLE, CPPLE, RPGLE</td>
<td valign="top">Optional, Positional 2</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#WRKMOD.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="WRKMOD.MODULE"></a>
<h3>Module (MODULE)</h3>
<p>Specifies how to search for modules to be placed in the list. All modules with names that correspond to the specified parameter value, and for which the user has authority, are shown.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: Module</b>
</p>
<dl>
<dt><b>*ALL</b></dt>
<dd>All modules in the libraries identified in the library qualifier are shown (except those libraries for which the user does not have authority).
</dd>
<dt><b><i>generic-name</i></b></dt>
<dd>Specify the generic name of the module. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. If a generic name is specified, then all modules with names that begin with the generic name, and for which the user has authority, are shown. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete module name.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the module shown.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the library list for the current thread are searched. All objects in these libraries with the specified object name are shown.
</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>
<dt><b>*ALL</b></dt>
<dd>All libraries in the system portion of the job's library list, 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>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="#WRKMOD.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="WRKMOD.MODATR"></a>
<h3>Module attribute (MODATR)</h3>
<p>Specifies that a list of modules with the selected attribute is shown.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Modules are shown regardless of the attribute associated with the module.
</dd>
<dt><b>CBLLE</b></dt>
<dd>Modules with the CBL attribute (ILE COBOL modules) are shown.
</dd>
<dt><b>CLE</b></dt>
<dd>Modules with the C attribute (ILE C modules) are shown.
</dd>
<dt><b>CLLE</b></dt>
<dd>Modules with the CL attributes (ILE CL modules) are shown.
</dd>
<dt><b>CPPLE</b></dt>
<dd>Modules with the CPPLE attribute (ILE C++ modules) are shown.
</dd>
<dt><b>RPGLE</b></dt>
<dd>Modules with the RPG attribute (ILE RPG modules) are shown.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKMOD.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="WRKMOD.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
WRKMOD MODULE(MYLIB/*ALL)
</pre>
</p>
<p>This command lists all the modules to which the user has authority that are stored in library MYLIB.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKMOD.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="WRKMOD.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF9809</b></dt>
<dd>Library &amp;1 cannot be accessed.
</dd>
<dt><b>CPF9820</b></dt>
<dd>Not authorized to use library &amp;1.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#WRKMOD.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>