768 lines
30 KiB
HTML
768 lines
30 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 Program (CRTPGM)</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="CRTPGM.Top_Of_Page"></a>
|
||
|
<h2>Create Program (CRTPGM)</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="#CRTPGM.PARAMETERS.TABLE">Parameters</a><br>
|
||
|
<a href="#CRTPGM.COMMAND.EXAMPLES">Examples</a><br>
|
||
|
<a href="#CRTPGM.ERROR.MESSAGES">Error messages</a></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div> <a name="CRTPGM"></a>
|
||
|
<p>The Create Program (CRTPGM) command creates a bound program from a set of modules and binding directories.
|
||
|
</p>
|
||
|
<p><b>Restrictions:</b>
|
||
|
</p>
|
||
|
<ul>
|
||
|
<li>You must have read (*READ) and add (*ADD) authorities for the library where the program is to be created.
|
||
|
</li>
|
||
|
<li>You must have use (*USE) authority to the specified modules, service programs, and binding directories.
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
|
||
|
<div>
|
||
|
<h3><a name="CRTPGM.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="#CRTPGM.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>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="#CRTPGM.MODULE"><b>MODULE</b></a></td>
|
||
|
<td valign="top">Module</td>
|
||
|
<td valign="top">Single values: <b><u>*PGM</u></b><br>Other values (up to 300 repetitions): <i>Qualified object name</i></td>
|
||
|
<td valign="top" rowspan="3">Optional</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</td>
|
||
|
</tr><tr>
|
||
|
<td valign="top"><a href="#CRTPGM.TEXT"><b>TEXT</b></a></td>
|
||
|
<td valign="top">Text 'description'</td>
|
||
|
<td valign="top"><i>Character value</i>, <b><u>*ENTMODTXT</u></b>, *BLANK</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top" rowspan="3"><a href="#CRTPGM.ENTMOD"><b>ENTMOD</b></a></td>
|
||
|
<td valign="top">Program entry procedure module</td>
|
||
|
<td valign="top">Single values: <b><u>*FIRST</u></b>, *ONLY, *PGM<br>Other values: <i>Qualified object name</i></td>
|
||
|
<td valign="top" rowspan="3">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Qualifier 1: Program entry procedure 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>*LIBL</u></b>, *CURLIB, *USRLIBL</td>
|
||
|
</tr><tr>
|
||
|
<td valign="top" rowspan="3"><a href="#CRTPGM.BNDSRVPGM"><b>BNDSRVPGM</b></a></td>
|
||
|
<td valign="top">Bind service program</td>
|
||
|
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values (up to 300 repetitions): <i>Qualified object name</i></td>
|
||
|
<td valign="top" rowspan="3">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Qualifier 1: Bind service 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></td>
|
||
|
</tr><tr>
|
||
|
<td valign="top" rowspan="3"><a href="#CRTPGM.BNDDIR"><b>BNDDIR</b></a></td>
|
||
|
<td valign="top">Binding directory</td>
|
||
|
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values (up to 300 repetitions): <i>Qualified object name</i></td>
|
||
|
<td valign="top" rowspan="3">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top">Qualifier 1: Binding directory</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</td>
|
||
|
</tr><tr>
|
||
|
<td valign="top"><a href="#CRTPGM.ACTGRP"><b>ACTGRP</b></a></td>
|
||
|
<td valign="top">Activation group</td>
|
||
|
<td valign="top"><i>Name</i>, <b><u>*ENTMOD</u></b>, *NEW, *CALLER</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTPGM.OPTION"><b>OPTION</b></a></td>
|
||
|
<td valign="top">Creation options</td>
|
||
|
<td valign="top">Values (up to 5 repetitions): *GEN, *NOGEN, *NODUPPROC, *DUPPROC, *NODUPVAR, *DUPVAR, *WARN, *NOWARN, *RSLVREF, *UNRSLVREF</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTPGM.DETAIL"><b>DETAIL</b></a></td>
|
||
|
<td valign="top">Listing detail</td>
|
||
|
<td valign="top"><b><u>*NONE</u></b>, *BASIC, *EXTENDED, *FULL</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTPGM.ALWUPD"><b>ALWUPD</b></a></td>
|
||
|
<td valign="top">Allow update</td>
|
||
|
<td valign="top"><b><u>*YES</u></b>, *NO</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTPGM.ALWLIBUPD"><b>ALWLIBUPD</b></a></td>
|
||
|
<td valign="top">Allow *SRVPGM library update</td>
|
||
|
<td valign="top">*YES, <b><u>*NO</u></b></td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTPGM.USRPRF"><b>USRPRF</b></a></td>
|
||
|
<td valign="top">User profile</td>
|
||
|
<td valign="top"><b><u>*USER</u></b>, *OWNER</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTPGM.REPLACE"><b>REPLACE</b></a></td>
|
||
|
<td valign="top">Replace program</td>
|
||
|
<td valign="top"><b><u>*YES</u></b>, *NO</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTPGM.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"><a href="#CRTPGM.TGTRLS"><b>TGTRLS</b></a></td>
|
||
|
<td valign="top">Target release</td>
|
||
|
<td valign="top"><i>Character value</i>, <b><u>*CURRENT</u></b>, *PRV</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTPGM.ALWRINZ"><b>ALWRINZ</b></a></td>
|
||
|
<td valign="top">Allow reinitialization</td>
|
||
|
<td valign="top"><b><u>*NO</u></b>, *YES</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTPGM.STGMDL"><b>STGMDL</b></a></td>
|
||
|
<td valign="top">Storage model</td>
|
||
|
<td valign="top"><b><u>*SNGLVL</u></b>, *TERASPACE</td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTPGM.IPA"><b>IPA</b></a></td>
|
||
|
<td valign="top">Interprocedural analysis</td>
|
||
|
<td valign="top">*YES, <b><u>*NO</u></b></td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td valign="top"><a href="#CRTPGM.IPACTLFILE"><b>IPACTLFILE</b></a></td>
|
||
|
<td valign="top">IPA control file</td>
|
||
|
<td valign="top"><i>Path name</i>, <b><u>*NONE</u></b></td>
|
||
|
<td valign="top">Optional</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div> <a name="CRTPGM.PGM"></a>
|
||
|
<h3>Program (PGM)</h3>
|
||
|
<p>Specifies the program object to be created.
|
||
|
</p>
|
||
|
<p>This is a required parameter.
|
||
|
</p>
|
||
|
<p><b>Qualifier 1: Program</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the program to be created.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Qualifier 2: Library</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*CURLIB</u></b></dt>
|
||
|
<dd>The program object is created in the current library for the job. If no library is specified as the current library for the job, the QGPL library is used.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the library where the program object is created.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.MODULE"></a>
|
||
|
<h3>Module (MODULE)</h3>
|
||
|
<p>Specifies the list of modules that are copied and bound together to create the program object. If duplicate module and library specifications are found, only the first instance of the duplicate module and library is used. Modules in this list are copied into the final program object. Up to 300 names can be specified.
|
||
|
</p>
|
||
|
<p><b>Single values</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*PGM</u></b></dt>
|
||
|
<dd>The name specified for the <b>Program (PGM)</b> parameter is used as the module object name.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Qualifier 1: Module</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>*ALL</b></dt>
|
||
|
<dd>Find all module objects in the specified library or libraries.
|
||
|
</dd>
|
||
|
<dt><b><i>generic-name</i></b></dt>
|
||
|
<dd>Specify all module objects starting with the characters preceding the * in the specified library or libraries.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the module that is copied to create the program object.
|
||
|
</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 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><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="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.TEXT"></a>
|
||
|
<h3>Text 'description' (TEXT)</h3>
|
||
|
<p>Specifies text that briefly describes the program object.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*ENTMODTXT</u></b></dt>
|
||
|
<dd>The text description of the module specified for the <b>Program entry procedure module (ENTMOD)</b> parameter is used.
|
||
|
</dd>
|
||
|
<dt><b>*BLANK</b></dt>
|
||
|
<dd>Text is not specified.
|
||
|
</dd>
|
||
|
<dt><b><i>character-value</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="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.ENTMOD"></a>
|
||
|
<h3>Program entry procedure module (ENTMOD)</h3>
|
||
|
<p>Specifies the module name that contains the program entry procedure specification to be used for this program.
|
||
|
</p>
|
||
|
<p><b>Single values</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*FIRST</u></b></dt>
|
||
|
<dd>The first module found, from the list of modules, that has a program entry procedure specification is selected as the program entry procedure.
|
||
|
</dd>
|
||
|
<dt><b>*ONLY</b></dt>
|
||
|
<dd>Only one module, from the list of modules, can have a specification as the program entry procedure. An error is issued if more than one module is found to have a program entry procedure specification.
|
||
|
</dd>
|
||
|
<dt><b>*PGM</b></dt>
|
||
|
<dd>The name and library specified on the <b>Program (PGM)</b> parameter will be the name and library of the module which has the program entry procedure specification.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Qualifier 1: Program entry procedure module</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the module containing the program entry procedure specification. If this module is not in the list of modules to be included in this program, it is added to the list of modules. If this module does not have a program entry procedure specification, the program is not created.
|
||
|
</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 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><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="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.BNDSRVPGM"></a>
|
||
|
<h3>Bind service program (BNDSRVPGM)</h3>
|
||
|
<p>Specifies the list of service program exports to examine at bind time to ensure they satisfy any module import requests. The service program exports are checked only if there are unresolved module import requests not satisfied by the set of module exports. Any service program specified on the BNDSRVPGM parameter that satisfies a module import request will be bound to the program being created. The service program name and the library specified on the BNDSRVPGM parameter are saved to be used at run time. Up to 300 names can be specified.
|
||
|
</p>
|
||
|
<p><b>Single values</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>No service program is specified.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Qualifier 1: Bind service program</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>*ALL</b></dt>
|
||
|
<dd>Find all service program objects in the specified library or libraries.
|
||
|
<p>
|
||
|
<b>Note: </b>This value should only be specified in a user-controlled environment when you know exactly what is getting bound to your program. Specifying *LIBL with *ALL may give you unpredictable results at program run time. Specify the generic service program name or specific libraries to better control what gets bound to your program.
|
||
|
</p>
|
||
|
</dd>
|
||
|
<dt><b><i>generic-name</i></b></dt>
|
||
|
<dd>Specify all service program objects starting with the characters preceding the * in the specified library or libraries.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the service program to be examined during symbol resolution.
|
||
|
</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><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the library to be searched.
|
||
|
<p>
|
||
|
<b>Note: </b>QTEMP is not a valid library name for this parameter.
|
||
|
</p>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.BNDDIR"></a>
|
||
|
<h3>Binding directory (BNDDIR)</h3>
|
||
|
<p>Specifies the list of binding directories that are used in symbol resolution. The exports of the modules and service programs in the binding directory are only checked if there are unresolved module import requests that the exports from the modules and service programs (specified in the MODULE or BNDSRVPGM parameters) could not satisfy. Up to 300 names can be specified.
|
||
|
</p>
|
||
|
<p><b>Single values</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>No binding directory is specified.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Qualifier 1: Binding directory</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the binding directory used in symbol resolution.
|
||
|
</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 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><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="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.ACTGRP"></a>
|
||
|
<h3>Activation group (ACTGRP)</h3>
|
||
|
<p>Specifies the activation group this program is associated with when it is called. An activation group provides:
|
||
|
</p>
|
||
|
<ul>
|
||
|
<li>Run-time data structures to support the running of programs
|
||
|
</li>
|
||
|
<li>Addressing protection
|
||
|
</li>
|
||
|
<li>A logical boundary for message creation
|
||
|
</li>
|
||
|
<li>A logical boundary for application cleanup processing
|
||
|
</li>
|
||
|
</ul>
|
||
|
<dl>
|
||
|
<dt><b><u>*ENTMOD</u></b></dt>
|
||
|
<dd>When ACTGRP(*ENTMOD) is specified, the program entry procedure module (ENTMOD parameter) is examined. If the module attribute is RPGLE, CBLLE, or CLLE, then ACTGRP(QILE) or ACTGRP(QILETS) is used. QILE is used when STGMDL(*SNGLVL) is specified, and QILETS is used when STGMDL(*TERASPACE) is specified. If the module attribute is not RPGLE, CBLLE, or CLLE, then ACTGRP(*NEW) is used.
|
||
|
</dd>
|
||
|
<dt><b>*NEW</b></dt>
|
||
|
<dd>When this program gets called, a new activation group is created. This called program is then associated with the newly created activation group.
|
||
|
</dd>
|
||
|
<dt><b>*CALLER</b></dt>
|
||
|
<dd>When this program gets called, the program is activated into the caller's activation group.
|
||
|
</dd>
|
||
|
<dt><b><i>name</i></b></dt>
|
||
|
<dd>Specify the name of the activation group to be used when this program is called.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.OPTION"></a>
|
||
|
<h3>Creation options (OPTION)</h3>
|
||
|
<p>Specifies options to be used when the program object is created.
|
||
|
</p>
|
||
|
<p>You can specify up to 5 values for this parameter.
|
||
|
</p>
|
||
|
<p><b>Program Objects</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*GEN</u></b></dt>
|
||
|
<dd>A program object is generated.
|
||
|
</dd>
|
||
|
<dt><b>*NOGEN</b></dt>
|
||
|
<dd>A program object is not generated.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Duplicate Procedure Names</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NODUPPROC</u></b></dt>
|
||
|
<dd>During the symbol resolution phase of the binding process, each procedure name that is exported from the modules and programs must be unique.
|
||
|
</dd>
|
||
|
<dt><b>*DUPPROC</b></dt>
|
||
|
<dd>During the symbol resolution phase of the binding process, the procedure names that are exported from the modules and service programs do not have to be unique. When multiple duplicate procedures are allowed, the first exported procedure in the list of specified modules and service programs that matches the import request is the procedure that is selected.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Duplicate Variable Names</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NODUPVAR</u></b></dt>
|
||
|
<dd>During the symbol resolution phase of the binding process, each variable name that is exported from the modules and service programs must be unique.
|
||
|
</dd>
|
||
|
<dt><b>*DUPVAR</b></dt>
|
||
|
<dd>During the symbol resolution phase of the binding process, the variable names that are exported from the modules and service programs do not have to be unique. When multiple duplicate variables are allowed, the first exported variable in the list of specified modules and service programs that matches the import request is the variable that is selected.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Issuing Diagnostic Messages</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*WARN</u></b></dt>
|
||
|
<dd>If duplicate variables or procedures are found, a diagnostic message is issued indicating what duplicates were found.
|
||
|
</dd>
|
||
|
<dt><b>*NOWARN</b></dt>
|
||
|
<dd>If duplicate variables or procedures are found, diagnostic messages are not issued.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
<p><b>Resolving References (Imports)</b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*RSLVREF</u></b></dt>
|
||
|
<dd>All imports must be resolved to exports for the program to be created.
|
||
|
</dd>
|
||
|
<dt><b>*UNRSLVREF</b></dt>
|
||
|
<dd>All imports do not need to resolve to exports for the program to be created. If the program tries to use one of these unresolved imports at run time, a MCH4439 run-time exception is issued.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.DETAIL"></a>
|
||
|
<h3>Listing detail (DETAIL)</h3>
|
||
|
<p>Specifies the level of detail to be printed.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>A listing is not generated.
|
||
|
</dd>
|
||
|
<dt><b>*BASIC</b></dt>
|
||
|
<dd>Contains a listing of the options passed to CRTPGM, and processing statistics. This listing also contains the Brief Summary Table.
|
||
|
</dd>
|
||
|
<dt><b>*EXTENDED</b></dt>
|
||
|
<dd>In addition to the information provided in the *BASIC listing, this listing contains the Extended Summary Table and the Binding Information Listing.
|
||
|
</dd>
|
||
|
<dt><b>*FULL</b></dt>
|
||
|
<dd>This listing contains the *EXTENDED listing and the Cross-Reference Listing.
|
||
|
<p>
|
||
|
<b>Note: </b>If a printed listing is requested, the printer file *LIBL/QSYSPRT is used to generate the listing.
|
||
|
</p>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.ALWUPD"></a>
|
||
|
<h3>Allow update (ALWUPD)</h3>
|
||
|
<p>Specifies whether to allow an update, using the Update Program (UPDPGM) command, of the program being created.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*YES</u></b></dt>
|
||
|
<dd>The program can be updated using the UPDPGM command.
|
||
|
</dd>
|
||
|
<dt><b>*NO</b></dt>
|
||
|
<dd>The UPDPGM command cannot be used to update the program being created.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.ALWLIBUPD"></a>
|
||
|
<h3>Allow *SRVPGM library update (ALWLIBUPD)</h3>
|
||
|
<p>Specifies whether to allow the bound service program library name of the program being created to be changed when updated using the Update Program (UPDPGM) command.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NO</u></b></dt>
|
||
|
<dd>The UPDPGM command is not allowed to update the bound service program library names of the program being created, even if *YES is specified for the <b>Allow update (ALWUPD)</b> parameter.
|
||
|
</dd>
|
||
|
<dt><b>*YES</b></dt>
|
||
|
<dd>The UPDPGM command is allowed to update the bound service program library names of the program being created when ALWUPD(*YES) is specified.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.USRPRF"></a>
|
||
|
<h3>User profile (USRPRF)</h3>
|
||
|
<p>Specifies whether the authority checking done while this program is running includes only the user who is running the program (*USER) or both the user running the program and the program owner (*OWNER). The profiles of the program user or both the program user and the program owner are used to control which objects can be used by the program, including the authority the program has for each object.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*USER</u></b></dt>
|
||
|
<dd>The program runs under the user profile of the program's user.
|
||
|
</dd>
|
||
|
<dt><b>*OWNER</b></dt>
|
||
|
<dd>The user profiles of both the program owner and the program user are used when the program is run.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.REPLACE"></a>
|
||
|
<h3>Replace program (REPLACE)</h3>
|
||
|
<p>Specifies whether the existing program is replaced if a program by the same name already exists in the specified library.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*YES</u></b></dt>
|
||
|
<dd>Replace the existing program by moving it to the QRPLOBJ library. Current activations of the program will continue running, using the version of the program in the QRPLOBJ library.
|
||
|
<p>
|
||
|
<b>Note: </b>Both programs must be owned by the same user for the replace to work.
|
||
|
</p>
|
||
|
</dd>
|
||
|
<dt><b>*NO</b></dt>
|
||
|
<dd>No replacement occurs. An error message is issued if a program already exists with the name and library specified for the <b>Program (PGM)</b> parameter.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.AUT"></a>
|
||
|
<h3>Authority (AUT)</h3>
|
||
|
<p>Specifies the authority you are giving to users who do not have specific authority for the object, who are not on an authorization list, and whose group profile or supplemental group profiles do not have 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 command (CRTLIB) 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>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.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="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.ALWRINZ"></a>
|
||
|
<h3>Allow reinitialization (ALWRINZ)</h3>
|
||
|
<p>Specifies if the static storage of the program is allowed to be reinitialized while it is still active.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NO</u></b></dt>
|
||
|
<dd>The static storage of the program can not be reinitialized while it is still active.
|
||
|
</dd>
|
||
|
<dt><b>*YES</b></dt>
|
||
|
<dd>The static storage of the program is allowed to be reinitialized while the program is still active.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.STGMDL"></a>
|
||
|
<h3>Storage model (STGMDL)</h3>
|
||
|
<p>Specifies the storage model attribute of the program.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*SNGLVL</u></b></dt>
|
||
|
<dd>The program is created with single-level storage model. When a single-level storage model program is activated and run, it is supplied single-level storage for automatic and static storage. A single-level storage program runs only in a single-level storage activation group.
|
||
|
</dd>
|
||
|
<dt><b>*TERASPACE</b></dt>
|
||
|
<dd>The program is created with teraspace storage model. When a teraspace storage model program is activated and run, it is supplied teraspace storage for automatic and static storage. A teraspace storage program runs only in a teraspace storage activation group.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.IPA"></a>
|
||
|
<h3>Interprocedural analysis (IPA)</h3>
|
||
|
<p>Specifies whether interprocedural analysis (IPA) is to be used during the program creation. For more information on IPA, refer to the ILE Concepts book, SC41-5606.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NO</u></b></dt>
|
||
|
<dd>Interprocedural analysis will not be performed.
|
||
|
</dd>
|
||
|
<dt><b>*YES</b></dt>
|
||
|
<dd>Interprocedural analysis will be performed.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<div> <a name="CRTPGM.IPACTLFILE"></a>
|
||
|
<h3>IPA control file (IPACTLFILE)</h3>
|
||
|
<p>Gives the path name of a file which contains interprocedural analysis (IPA) suboption information. This parameter is allowed only when IPA(*YES) is specified.
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b><u>*NONE</u></b></dt>
|
||
|
<dd>No IPA control file information is to be used when IPA(*YES) is specified.
|
||
|
</dd>
|
||
|
<dt><b><i>path-name</i></b></dt>
|
||
|
<dd>Specifies the path name of the IPA control file to use when IPA(*YES) is specified. If the name is qualified it must be enclosed in apostrophes. An example of a qualified IPA control file name is '/directory1/directory2/myipactlfname'
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="CRTPGM.COMMAND.EXAMPLES">Examples</a> </h3>
|
||
|
<p>
|
||
|
<pre>
|
||
|
CRTPGM PGM(STAR)
|
||
|
</pre>
|
||
|
</p>
|
||
|
<p>This command creates a program object named STAR in the current library for the job, or library QGPL if there is no current library. The program will be created from one module object that is also named STAR and is located using the current library for the job.
|
||
|
</p>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
<hr size="2" width="100%">
|
||
|
<div><h3><a name="CRTPGM.ERROR.MESSAGES">Error messages</a> </h3>
|
||
|
<p><b><u>*ESCAPE Messages</u></b>
|
||
|
</p>
|
||
|
<dl>
|
||
|
<dt><b>CPF223E</b></dt>
|
||
|
<dd>Authority check for use adopted authority attribute failed.
|
||
|
</dd>
|
||
|
<dt><b>CPF3C50</b></dt>
|
||
|
<dd>Program &1 not created.
|
||
|
</dd>
|
||
|
<dt><b>CPF5D12</b></dt>
|
||
|
<dd>Error encountered during program or service program preparation.
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<table width="100%">
|
||
|
<tr><td align="right"><a href="#CRTPGM.Top_Of_Page">Top</a></td></tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|