632 lines
24 KiB
HTML
632 lines
24 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>Create CL Module (CRTCLMOD)</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="CRTCLMOD.Top_Of_Page"></a>
|
||
|
<h2>Create CL Module (CRTCLMOD)</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="#CRTCLMOD.PARAMETERS.TABLE">Parameters</a><br>
|
||
|
<a href="#CRTCLMOD.COMMAND.EXAMPLES">Examples</a><br>
|
||
|
<a href="#CRTCLMOD.ERROR.MESSAGES">Error messages</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div> <a name="CRTCLMOD"></a>
|
||
|
<p>The Create Control Language Module (CRTCLMOD) command creates a control language (CL) module from the specified CL source member.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
|
||
|
<div>
|
||
|
<h3><a name="CRTCLMOD.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="#CRTCLMOD.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>Name</i></td>
|
||
|
</tr><tr>
|
||
|
<td valign="top">Qualifier 2: Library</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>*CURLIB</u></b></td>
|
||
|
</tr><tr>
|
||
|
<td valign="top" rowspan="3"><a href="#CRTCLMOD.SRCFILE"><b>SRCFILE</b></a></td>
|
||
|
<td valign="top">Source file</td>
|
||
|
<td valign="top"><i>Qualified object name</i></td>
|
||
|
<td valign="top" rowspan="3">Optional, Positional 2</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Qualifier 1: Source file</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>QCLSRC</u></b></td>
|
||
|
</tr><tr>
|
||
|
<td valign="top">Qualifier 2: Library</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
||
|
</tr><tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.SRCMBR"><b>SRCMBR</b></a></td>
|
||
|
<td valign="top">Source member</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>*MODULE</u></b></td>
|
||
|
<td valign="top">Optional, Positional 3</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.TEXT"><b>TEXT</b></a></td>
|
||
|
<td valign="top">Text 'description'</td>
|
||
|
<td valign="top"><i>Character value</i>, <b><u>*SRCMBRTXT</u></b>, *BLANK</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.OUTPUT"><b>OUTPUT</b></a></td>
|
||
|
<td valign="top">Output</td>
|
||
|
<td valign="top"><b><u>*PRINT</u></b>, *NONE</td>
|
||
|
<td valign="top">Optional, Positional 4</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.OPTION"><b>OPTION</b></a></td>
|
||
|
<td valign="top">Source listing options</td>
|
||
|
<td valign="top">Values (up to 4 repetitions): *XREF, *NOXREF, *GEN, *NOGEN, *SECLVL, *NOSECLVL, *EVENTF, *NOEVENTF</td>
|
||
|
<td valign="top">Optional, Positional 5</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.LOG"><b>LOG</b></a></td>
|
||
|
<td valign="top">Log commands</td>
|
||
|
<td valign="top"><b><u>*JOB</u></b>, *YES, *NO</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.REPLACE"><b>REPLACE</b></a></td>
|
||
|
<td valign="top">Replace module object</td>
|
||
|
<td valign="top"><b><u>*YES</u></b>, *NO</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.TGTRLS"><b>TGTRLS</b></a></td>
|
||
|
<td valign="top">Target release</td>
|
||
|
<td valign="top"><i>Simple name</i>, <b><u>*CURRENT</u></b>, *PRV</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.AUT"><b>AUT</b></a></td>
|
||
|
<td valign="top">Authority</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>*LIBCRTAUT</u></b>, *CHANGE, *ALL, *USE, *EXCLUDE</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" rowspan="3"><a href="#CRTCLMOD.SRTSEQ"><b>SRTSEQ</b></a></td>
|
||
|
<td valign="top">Sort sequence</td>
|
||
|
<td valign="top">Single values: <b><u>*HEX</u></b>, *JOB, *JOBRUN, *LANGIDUNQ, *LANGIDSHR<br>Other values: <i>Qualified object name</i></td>
|
||
|
<td valign="top" rowspan="3">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Qualifier 1: Sort sequence</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</td>
|
||
|
</tr><tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.LANGID"><b>LANGID</b></a></td>
|
||
|
<td valign="top">Language ID</td>
|
||
|
<td valign="top"><i>Character value</i>, <b><u>*JOBRUN</u></b>, *JOB</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.OPTIMIZE"><b>OPTIMIZE</b></a></td>
|
||
|
<td valign="top">Optimization</td>
|
||
|
<td valign="top"><b><u>*NONE</u></b>, *BASIC, *FULL, 10, 20, 30, 40</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.DBGVIEW"><b>DBGVIEW</b></a></td>
|
||
|
<td valign="top">Debugging view</td>
|
||
|
<td valign="top"><b><u>*STMT</u></b>, *SOURCE, *LIST, *ALL, *NONE</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTCLMOD.ENBPFRCOL"><b>ENBPFRCOL</b></a></td>
|
||
|
<td valign="top">Enable performance collection</td>
|
||
|
<td valign="top"><b><u>*PEP</u></b>, *FULL, *NONE</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div> <a name="CRTCLMOD.MODULE"></a>
|
||
|
<h3>Module (MODULE)</h3>
|
||
|
<p>Specifies the module object to be created.
|
||
|
</p>
|
||
|
<p>This is a required parameter.
|
||
|
</p>
|
||
|
<p><b>Qualifier 1: Module</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the module to be created.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Qualifier 2: Library</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*CURLIB</u></b></dt>
|
||
|
<dd>The module is stored in the current library for the job. If no current library entry exists in the library list, QGPL is used.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the library where the module is to be stored.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.SRCFILE"></a>
|
||
|
<h3>Source file (SRCFILE)</h3>
|
||
|
<p>Specifies the source file that contains the CL source member to be compiled.
|
||
|
</p>
|
||
|
<p><b>Qualifier 1: Source file</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>QCLSRC</u></b></dt>
|
||
|
<dd>The source file named QCLSRC, that contains the CL source member to be compiled, is used.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the source file that contains the CL source member to be compiled. The source file can be a database file, a device file, or an inline data file.
|
||
|
</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 until the first match is found.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*CURLIB</b></dt>
|
||
|
<dd>The current library for the thread is used to locate the source file. 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 to be searched.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.SRCMBR"></a>
|
||
|
<h3>Source member (SRCMBR)</h3>
|
||
|
<p>Specifies the name of the member of the source file that contains the CL source member to be compiled.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*MODULE</u></b></dt>
|
||
|
<dd>The CL source member to be compiled is in the member of the source file that has the same name as that specified for the MODULE parameter for the compiled module.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the member that contains the CL source, if the member name is not the same as the name of the module to be created.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.TEXT"></a>
|
||
|
<h3>Text 'description' (TEXT)</h3>
|
||
|
<p>Specifies text that briefly describes the compiled CL module.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*SRCMBRTXT</u></b></dt>
|
||
|
<dd>The text is taken from the source file member used to create the CL module. If the source file is an inline data file or a device file, the text is blank.
|
||
|
</dd>
|
||
|
<dt><b>*BLANK</b></dt>
|
||
|
<dd>Text is not specified.
|
||
|
</dd>
|
||
|
<dt><b><i>'description'</i></b></dt>
|
||
|
<dd>Specify no more than 50 characters of text, enclosed in apostrophes.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.OUTPUT"></a>
|
||
|
<h3>Output (OUTPUT)</h3>
|
||
|
<p>Specifies whether or not a compiler listing is produced.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*PRINT</u></b></dt>
|
||
|
<dd>The compiler listing is produced. The information contained in the listing is dependent on the values specified for the <b>Source listing options (OPTION)</b> parameter.
|
||
|
</dd>
|
||
|
<dt><b>*NONE</b></dt>
|
||
|
<dd>The compiler listing is not produced. When a listing is not required, this option should be used because compile-time performance may be better.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.OPTION"></a>
|
||
|
<h3>Source listing options (OPTION)</h3>
|
||
|
<p>Specifies the types of output lists created when this command is processed and whether a program is created. A maximum of four of the following values can be specified in any order on this parameter. If neither or both of the values in each group are specified, the underlined value is used.
|
||
|
</p>
|
||
|
<p>
|
||
|
<b>Note: </b>The underlined values for this parameter are <i>similar</i> to, but not <i>actually</i> default values, and therefore, cannot be changed with the Change Command Default (CHGCMDDFT) command.
|
||
|
</p>
|
||
|
<p><b>Module Creation Option</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*GEN</u></b></dt>
|
||
|
<dd>All phases of the compilation process are carried out.
|
||
|
</dd>
|
||
|
<dt><b>*NOGEN</b></dt>
|
||
|
<dd>Compilations stops after syntax checking. No module is created.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Cross-Reference Option</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NOXREF</u></b></dt>
|
||
|
<dd>No cross-reference list of references to variable and data items in the source is created.
|
||
|
</dd>
|
||
|
<dt><b>*XREF</b></dt>
|
||
|
<dd>A cross-reference listing of the source program is produced. OUTPUT(*PRINT) must be specified.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Second-Level Message Text Option</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NOSECLVL</u></b></dt>
|
||
|
<dd>No second level message text is printed.
|
||
|
</dd>
|
||
|
<dt><b>*SECLVL</b></dt>
|
||
|
<dd>Second-level message text is printed. OUTPUT(*PRINT) must be specified.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Event File Creation Option</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NOEVENTF</u></b></dt>
|
||
|
<dd>The compiler will not produce an event file for use by the CoOperative Development Environment for iSeries (CODE for iSeries) product.
|
||
|
</dd>
|
||
|
<dt><b>*EVENTF</b></dt>
|
||
|
<dd>The compiler produces an event file for use by the CODE for iSeries product. The event file will be created as a member in the file EVFEVENT in your source library. The CODE for iSeries product uses this file to offer error feedback integrated with the CODE for iSeries editor. This option is normally specified by the CODE for iSeries product on your behalf.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.LOG"></a>
|
||
|
<h3>Log commands (LOG)</h3>
|
||
|
<p>Specifies the logging options for a created CL module.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*JOB</u></b></dt>
|
||
|
<dd>Logging of commands in a running CL module depends on the status of the job's logging flag (see the LOGCLPGM parameter of the Change Job (CHGJOB) command). To list the logged commands, the logging level of the jobs must be 3 or 4.
|
||
|
<p>A *YES or *NO value takes precedence over any value specified in the CHGJOB command.
|
||
|
</p>
|
||
|
</dd>
|
||
|
<dt><b>*YES</b></dt>
|
||
|
<dd>The commands are logged in all cases.
|
||
|
</dd>
|
||
|
<dt><b>*NO</b></dt>
|
||
|
<dd>The commands are not logged.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.REPLACE"></a>
|
||
|
<h3>Replace module object (REPLACE)</h3>
|
||
|
<p>Specifies whether an existing module is replaced if a module with the same name already exists in the specified library.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*YES</u></b></dt>
|
||
|
<dd>The existing module is replaced by moving it to the QRPLOBJ library.
|
||
|
<p><b>Notes:</b>
|
||
|
</p>
|
||
|
<ol>
|
||
|
<li>If a running CL module is recompiled with *YES specified for the REPLACE parameter, message queue errors may occur in the running CL module.
|
||
|
</li>
|
||
|
<li>Specifying *YES for this parameter causes the value on the AUT parameter to be ignored. The existing module is used as the source of authority. To change the authority for the module, you can use the Grant Object Authority (GRTOBJAUT) or Revoke Object Authority (RVKOBJAUT) commands.
|
||
|
</li>
|
||
|
</ol>
|
||
|
</dd>
|
||
|
<dt><b>*NO</b></dt>
|
||
|
<dd>The existing module is not replaced. When a module with the same name exists in the specified library, a message is displayed and compilation stops.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.TGTRLS"></a>
|
||
|
<h3>Target release (TGTRLS)</h3>
|
||
|
<p>Specifies the release of the operating system on which you intend to use the object being created.
|
||
|
</p>
|
||
|
<p>When specifying the <b>target-release</b> value, the format VxRxMx is used to specify the release, where Vx is the version, Rx is the release, and Mx is the modification level. For example, V5R3M0 is version 5, release 3, modification 0.
|
||
|
</p>
|
||
|
<p>Valid values depend on the current version, release, and modification level of the operating system, and they change with each new release. You can press F4 while prompting this command parameter to see a list of valid target release values.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*CURRENT</u></b></dt>
|
||
|
<dd>The object is to be used on the release of the operating system currently running on your system. The object can also be used on a system with any subsequent release of the operating system installed.
|
||
|
</dd>
|
||
|
<dt><b>*PRV</b></dt>
|
||
|
<dd>The object is to be used on the previous release with modification level 0 of the operating system. The object can also be used on a system with any subsequent release of the operating system installed.
|
||
|
</dd>
|
||
|
<dt><b><i>character-value</i></b></dt>
|
||
|
<dd>Specify the release in the format VxRxMx. The object can be used on a system with the specified release or with any subsequent release of the operating system installed.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.AUT"></a>
|
||
|
<h3>Authority (AUT)</h3>
|
||
|
<p>Specifies the authority you are granting to the users who do not have specific authority for the object, who are not on the authorization list, and whose user group has no specific authority for the object.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*LIBCRTAUT</u></b></dt>
|
||
|
<dd>The system determines the authority for the object by using the value specified for the <b>Create authority (CRTAUT)</b> parameter on the Create Library (CRTLIB) command for the library containing the object to be created. If the value specified for the CRTAUT parameter is changed, the new value will not affect any existing objects.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*CHANGE</b></dt>
|
||
|
<dd>The user can perform all operations on the object except those limited to the owner or controlled by object existence (*OBJEXIST) and object management (*OBJMGT) authorities. The user can change and perform basic functions on the object. *CHANGE authority provides object operational (*OBJOPR) authority and all data authority. If the object is an authorization list, the user cannot add, change, or remove users.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*ALL</b></dt>
|
||
|
<dd>The user can perform all operations except those limited to the owner or controlled by authorization list management (*AUTLMGT) authority. The user can control the object's existence, specify the security for the object, change the object, and perform basic functions on the object. The user also can change ownership of the object.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*USE</b></dt>
|
||
|
<dd>The user can perform basic operations on the object, such as running a program or reading a file. The user cannot change the object. Use (*USE) authority provides object operational (*OBJOPR), read (*READ), and execute (*EXECUTE) authorities.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b>*EXCLUDE</b></dt>
|
||
|
<dd>The user cannot access the object.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of an authorization list to be used for authority to the object. Users included in the authorization list are granted authority to the object as specified in the list. The authorization list must exist when the object is created.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p>
|
||
|
<b>Note: </b>This parameter is ignored when REPLACE(*YES) is specified.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.SRTSEQ"></a>
|
||
|
<h3>Sort sequence (SRTSEQ)</h3>
|
||
|
<p>Specifies the sort sequence table to be used for string comparisons for this CL module. The sort sequence value is used with the language identifier and the coded character set identifier of the job to determine the sort sequence table to use.
|
||
|
</p>
|
||
|
<p><b>Single values</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*HEX</u></b></dt>
|
||
|
<dd>A sort sequence table is not used. The hexadecimal values of the characters are used to determine the sort sequence.
|
||
|
</dd>
|
||
|
<dt><b>*JOB</b></dt>
|
||
|
<dd>The sort sequence used is the SRTSEQ associated with the job when the CL module is created.
|
||
|
</dd>
|
||
|
<dt><b>*JOBRUN</b></dt>
|
||
|
<dd>The sort sequence used is the SRTSEQ associated with the job when the CL module is run.
|
||
|
</dd>
|
||
|
<dt><b>*LANGIDUNQ</b></dt>
|
||
|
<dd>The sort sequence table uses a unique weight for each character, and is the unique-weight sort table for the language specified for the LANGID parameter.
|
||
|
</dd>
|
||
|
<dt><b>*LANGIDSHR</b></dt>
|
||
|
<dd>The sort sequence table uses the same weight for multiple characters, and is the shared-weight sort sequence table associated with the language specified for the LANGID parameter.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Qualifier 1: Sort sequence</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the sort sequence table to be used with this CL module.
|
||
|
</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 until the first match is found.
|
||
|
</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><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="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.LANGID"></a>
|
||
|
<h3>Language ID (LANGID)</h3>
|
||
|
<p>Specifies the language identifier to be used when SRTSEQ(*LANGIDUNQ) or SRTSEQ(*LANGIDSHR) is specified.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*JOBRUN</u></b></dt>
|
||
|
<dd>The language ID used is the LANGID associated with the job when the CL module is run.
|
||
|
</dd>
|
||
|
<dt><b>*JOB</b></dt>
|
||
|
<dd>The language ID used is the LANGID associated with the job when the CL module is created.
|
||
|
</dd>
|
||
|
<dt><b><i>language-ID</i></b></dt>
|
||
|
<dd>Specify the language identifier to be used by the job.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.OPTIMIZE"></a>
|
||
|
<h3>Optimization (OPTIMIZE)</h3>
|
||
|
<p>Specifies the optimization level of the generated program code. ILE CL can not be optimized. For compatibility, values other than *NONE are accepted, but no optimization will be performed. ILE CL modules and programs should not be used with system functions that require an optimization level higher than *NONE.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>The generated code is not optimized. This value is the fastest level of optimization in terms of translation time. This level allows variables to be displayed and modified while debugging.
|
||
|
</dd>
|
||
|
<dt><b>*BASIC</b></dt>
|
||
|
<dd>No optimization is performed. CPD0861 will be displayed in the compiled listing and sent to the job log.
|
||
|
</dd>
|
||
|
<dt><b>*FULL</b></dt>
|
||
|
<dd>No optimization is performed. CPD0861 will be displayed in the compiled listing and sent to the job log.
|
||
|
</dd>
|
||
|
<dt><b>10</b></dt>
|
||
|
<dd>No optimization is performed. CPD0861 will be displayed in the compiled listing and sent to the job log.
|
||
|
</dd>
|
||
|
<dt><b>20</b></dt>
|
||
|
<dd>No optimization is performed. CPD0861 will be displayed in the compiled listing and sent to the job log.
|
||
|
</dd>
|
||
|
<dt><b>30</b></dt>
|
||
|
<dd>No optimization is performed. CPD0861 will be displayed in the compiled listing and sent to the job log.
|
||
|
</dd>
|
||
|
<dt><b>40</b></dt>
|
||
|
<dd>No optimization is performed. CPD0861 will be displayed in the compiled listing and sent to the job log.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.DBGVIEW"></a>
|
||
|
<h3>Debugging view (DBGVIEW)</h3>
|
||
|
<p>Specifies which level of debugging is available for the compiled module, and which source views are available for source-level debugging.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*STMT</u></b></dt>
|
||
|
<dd>The compiled module can be debugged using module statement numbers and symbolic identifiers.
|
||
|
</dd>
|
||
|
<dt><b>*NONE</b></dt>
|
||
|
<dd>None of the debug options for debugging the compiled module are available.
|
||
|
</dd>
|
||
|
<dt><b>*ALL</b></dt>
|
||
|
<dd>All of the debug options for debugging the compiled module can be used. The source and debug listing views are generated.
|
||
|
</dd>
|
||
|
<dt><b>*SOURCE</b></dt>
|
||
|
<dd>The source view for debugging the compiled module is generated.
|
||
|
</dd>
|
||
|
<dt><b>*LIST</b></dt>
|
||
|
<dd>The listing view for debugging the compiled module is generated.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTCLMOD.ENBPFRCOL"></a>
|
||
|
<h3>Enable performance collection (ENBPFRCOL)</h3>
|
||
|
<p>Specifies whether collection of performance data is enabled.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*PEP or *NONE</u></b></dt>
|
||
|
<dd>Performance data is collected for the Program Entry Procedure entry and exit. There are no entry or exit hooks in the module's internal procedures and no precall or postcall hooks around calls to other procedures.
|
||
|
</dd>
|
||
|
<dt><b>*FULL</b></dt>
|
||
|
<dd>Performance data is collected for procedure entry and exit. Performance data is also collected before and after calls to external procedures.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="CRTCLMOD.COMMAND.EXAMPLES">Examples</a> </h3>
|
||
|
<p><b>Example 1: Creating a CL Module</b>
|
||
|
</p>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CRTCLMOD PAYROLL TEXT('Payroll Program')
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command calls the ILE CL compiler to create a module (*MODULE) named PAYROLL. The CL procedure source is in the default source file QCLSRC in the member PAYROLL. A compiler listing is created.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="CRTCLMOD.ERROR.MESSAGES">Error messages</a> </h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>CPF0C33</b></dt>
|
||
|
<dd>Target release &1 not valid.
|
||
|
</dd>
|
||
|
<dt><b>CPF0C35</b></dt>
|
||
|
<dd>Target release &1 is not a supported release.
|
||
|
</dd>
|
||
|
<dt><b>CPF0807</b></dt>
|
||
|
<dd>File containing compiler printout not opened.
|
||
|
</dd>
|
||
|
<dt><b>CPF0808</b></dt>
|
||
|
<dd>Error in compiler-created code.
|
||
|
</dd>
|
||
|
<dt><b>CPF0814</b></dt>
|
||
|
<dd>Licensed Program 5722-SS1 Option 9 not installed.
|
||
|
</dd>
|
||
|
<dt><b>CPF0815</b></dt>
|
||
|
<dd>CL program &1 in &2 cannot be created for previous release.
|
||
|
</dd>
|
||
|
<dt><b>CPF0821</b></dt>
|
||
|
<dd>Module &1 not created.
|
||
|
</dd>
|
||
|
<dt><b>CPF0849</b></dt>
|
||
|
<dd>Space addressing violation.
|
||
|
</dd>
|
||
|
<dt><b>CPF3202</b></dt>
|
||
|
<dd>File &1 in library &2 in use.
|
||
|
</dd>
|
||
|
<dt><b>CPF3203</b></dt>
|
||
|
<dd>Cannot allocate object for file &1 in &2.
|
||
|
</dd>
|
||
|
<dt><b>CPF3224</b></dt>
|
||
|
<dd>Not authorized to perform operation on file &1.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTCLMOD.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|