294 lines
10 KiB
HTML
294 lines
10 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 Programs (WRKPGM)</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="WRKPGM.Top_Of_Page"></a>
|
|
<h2>Work with Programs (WRKPGM)</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="#WRKPGM.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#WRKPGM.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#WRKPGM.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="WRKPGM"></a>
|
|
<p>The Work with Programs (WRKPGM) command allows you to show a list of programs from one or more libraries.
|
|
</p>
|
|
<p><b>Restrictions:</b>
|
|
</p>
|
|
<ul>
|
|
<li>Only the libraries to which you have use (*USE) authority will be searched.
|
|
</li>
|
|
<li>Only the programs to which you have object operational (*OBJOPR) authority will be shown.
|
|
</li>
|
|
<li>To perform operations on the programs, you must have *USE authority to the command used by the operation, and the appropriate authority to the programs on which the operation is to be performed.
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#WRKPGM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="WRKPGM.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="#WRKPGM.PGM"><b>PGM</b></a></td>
|
|
<td valign="top">Program</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: Program</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="#WRKPGM.PGMATR"><b>PGMATR</b></a></td>
|
|
<td valign="top">Program attribute</td>
|
|
<td valign="top"><b><u>*ALL</u></b>, ASM38, BAS, BAS38, CBL, CBLLE, CBL36, CBL38, CLE, CLLE, CLP, CLP38, CPPLE, CSP, DFU, DFUEXC, DFUNOTEXC, FTN, PAS, PAS38, PLI, PLI38, RMC, RPG, RPGLE, RPG36, RPG38</td>
|
|
<td valign="top">Optional, Positional 2</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#WRKPGM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="WRKPGM.PGM"></a>
|
|
<h3>Program (PGM)</h3>
|
|
<p>Specifies the programs to be shown.
|
|
</p>
|
|
<p>This is a required parameter.
|
|
</p>
|
|
<p><b>Qualifier 1: Program</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>*ALL</b></dt>
|
|
<dd>All programs are shown.
|
|
</dd>
|
|
<dt><b><i>generic-name</i></b></dt>
|
|
<dd>Specify the generic name of the programs 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 programs 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 program to be 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 thread is searched. If no library is specified as the current library for the thread, the QGPL library is searched.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<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 searched. If there is no current library entry, only the libraries in the user portion of the library list 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>*ALL</b></dt>
|
|
<dd>All libraries in the system, including QSYS, are searched.
|
|
</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="#WRKPGM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="WRKPGM.PGMATR"></a>
|
|
<h3>Program attribute (PGMATR)</h3>
|
|
<p>Specifies whether only programs with a specific program attribute are shown.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ALL</u></b></dt>
|
|
<dd>All programs specified for the <b>Program (PGM)</b> parameter are shown.
|
|
</dd>
|
|
<dt><b>ASM38</b></dt>
|
|
<dd>Programs with the attribute ASM38 (System/38 Assembler programs) are shown. Programs with this attribute cannot be run on an iSeries system.
|
|
</dd>
|
|
<dt><b>BAS</b></dt>
|
|
<dd>Programs with the attribute BAS (BASIC programs) are shown.
|
|
</dd>
|
|
<dt><b>BAS38</b></dt>
|
|
<dd>Programs with the attribute BAS38 (BASIC programs used in the System/38 environment) are shown.
|
|
</dd>
|
|
<dt><b>CBL</b></dt>
|
|
<dd>Programs with the attribute CBL (original program model (OPM) COBOL/400 programs) are shown.
|
|
</dd>
|
|
<dt><b>CBLLE</b></dt>
|
|
<dd>Programs with the attribute CBLLE (integrated language environment (ILE) COBOL/400 programs) are shown.
|
|
</dd>
|
|
<dt><b>CBL36</b></dt>
|
|
<dd>Programs with the attribute CBL36 (COBOL programs used in the System/36 environment) are shown.
|
|
</dd>
|
|
<dt><b>CBL38</b></dt>
|
|
<dd>Programs with the attribute CBL38 (COBOL programs used in the System/38 environment) are shown.
|
|
</dd>
|
|
<dt><b>CLE</b></dt>
|
|
<dd>Programs with the attribute CLE (ILE C/400 programs) are shown.
|
|
</dd>
|
|
<dt><b>CLLE</b></dt>
|
|
<dd>Programs with the attribute CLLE (ILE control language (CL) programs) are shown.
|
|
</dd>
|
|
<dt><b>CLP</b></dt>
|
|
<dd>Programs with the attribute CLP (OPM CL programs) are shown.
|
|
</dd>
|
|
<dt><b>CLP38</b></dt>
|
|
<dd>Programs with the attribute CLP38 (CL programs used in the System/38 environment) are shown.
|
|
</dd>
|
|
<dt><b>CPPLE</b></dt>
|
|
<dd>Programs with the attribute CPPLE (ILE C++ programs) are shown.
|
|
</dd>
|
|
<dt><b>CSP</b></dt>
|
|
<dd>Programs with the attribute CSP (CSP/AE application programs) are shown.
|
|
</dd>
|
|
<dt><b>DFU</b></dt>
|
|
<dd>Programs with the attribute DFU (data file utility (DFU) programs) are shown.
|
|
</dd>
|
|
<dt><b>DFUEXC</b></dt>
|
|
<dd>Programs with the attribute DFUEXC (DFU programs which can be run in the System/38 environment) are shown.
|
|
</dd>
|
|
<dt><b>DFUNOTEXC</b></dt>
|
|
<dd>Programs with the attribute DFUNOTEXC (System/38 DFU programs which cannot be run in the System/38 environment) are shown.
|
|
</dd>
|
|
<dt><b>FTN</b></dt>
|
|
<dd>Programs with the attribute FTN (FORTRAN programs) are shown.
|
|
</dd>
|
|
<dt><b>PAS</b></dt>
|
|
<dd>Programs with the attribute PAS (PASCAL programs) are shown.
|
|
</dd>
|
|
<dt><b>PAS38</b></dt>
|
|
<dd>Programs with the attribute PAS38 (PASCAL programs used in the System/38 environment) are shown.
|
|
</dd>
|
|
<dt><b>PLI</b></dt>
|
|
<dd>Programs with the attribute PLI (PL/I programs) are shown.
|
|
</dd>
|
|
<dt><b>PLI38</b></dt>
|
|
<dd>Programs with the attribute PLI38 (PL/I programs used in the System/38 environment) are shown.
|
|
</dd>
|
|
<dt><b>RMC</b></dt>
|
|
<dd>Programs with the attribute RMC (RM/COBOL-85 programs) are shown.
|
|
</dd>
|
|
<dt><b>RPG</b></dt>
|
|
<dd>Programs with the attribute RPG (OPM RPG/400 programs) are shown.
|
|
</dd>
|
|
<dt><b>RPGLE</b></dt>
|
|
<dd>Programs with the attribute RPGLE (ILE RPG/400 programs) are shown.
|
|
</dd>
|
|
<dt><b>RPG36</b></dt>
|
|
<dd>Programs with the attribute RPG36 (RPG programs used in the System/36 environment) are shown.
|
|
</dd>
|
|
<dt><b>RPG38</b></dt>
|
|
<dd>Programs with the attribute RPG38 (RPG programs used in the System/38 environment) are shown.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#WRKPGM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="WRKPGM.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Working with Control Language Programs</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
WRKPGM PGM(MYLIB/*ALL) PGMATR(CLP)
|
|
</pre>
|
|
</p>
|
|
<p>This command displays the Work with Programs panel, showing a list of all the programs with the attribute CLP (control language program) to which the user has some authority that are stored in library MYLIB.
|
|
</p>
|
|
<p><b>Example 2: Working with Programs by Generic Name</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
WRKPGM PGM(AB*)
|
|
</pre>
|
|
</p>
|
|
<p>This command displays the Work with Programs panel, showing a list of all programs in the library list that have names beginning with the letters 'AB'.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#WRKPGM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="WRKPGM.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPF9809</b></dt>
|
|
<dd>Library &1 cannot be accessed.
|
|
</dd>
|
|
<dt><b>CPF9820</b></dt>
|
|
<dd>Not authorized to use library &1.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#WRKPGM.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|