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

750 lines
29 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>Add Prestart Job Entry (ADDPJE)</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="ADDPJE.Top_Of_Page"></a>
<h2>Add Prestart Job Entry (ADDPJE)</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="#ADDPJE.PARAMETERS.TABLE">Parameters</a><br>
<a href="#ADDPJE.COMMAND.EXAMPLES">Examples</a><br>
<a href="#ADDPJE.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="ADDPJE"></a>
<p>The Add Prestart Job Entry (ADDPJE) command adds a prestart job entry to the specified subsystem description. The entry identifies prestart jobs that may be started when the subsystem is started or when the Start Prestart Jobs (STRPJ) command is entered.
</p>
<p><b>Notes:</b>
</p>
<ol>
<li>The job associated with an active subsystem can only find objects that exist in the system auxiliary storage pool (ASP) or in a basic user ASP. Therefore, objects that are referenced by this command should exist in the system ASP or in a basic user ASP.
</li>
</ol>
<p><b>Restrictions:</b>
</p>
<ol>
<li>To use this command, you must have:
<ul>
<li>object operational (*OBJOPR), object management (*OBJMGT), and read (*READ) authority to the specified subsystem description and execute (*EXECUTE) authority to the library containing that subsystem description.
</li>
<li>object operational (*OBJOPR) and read (*READ) authority to the job description and execute (*EXECUTE) authority to the library containing that job description.
</li>
<li>use (*USE) authority to the user profile.
</li>
</ul>
</li>
<li>Only a user with all object (*ALLOBJ) special authority is allowed to add an entry for which the job description does not exist.
</li>
</ol>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="ADDPJE.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="#ADDPJE.SBSD"><b>SBSD</b></a></td>
<td valign="top">Subsystem description</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: Subsystem description</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" rowspan="3"><a href="#ADDPJE.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 2</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>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#ADDPJE.USER"><b>USER</b></a></td>
<td valign="top">User profile</td>
<td valign="top"><i>Name</i>, <b><u>QUSER</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDPJE.STRJOBS"><b>STRJOBS</b></a></td>
<td valign="top">Start jobs</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDPJE.INLJOBS"><b>INLJOBS</b></a></td>
<td valign="top">Initial number of jobs</td>
<td valign="top">1-9999, <b><u>3</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDPJE.THRESHOLD"><b>THRESHOLD</b></a></td>
<td valign="top">Threshold</td>
<td valign="top">1-9999, <b><u>2</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDPJE.ADLJOBS"><b>ADLJOBS</b></a></td>
<td valign="top">Additional number of jobs</td>
<td valign="top">0-999, <b><u>2</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDPJE.MAXJOBS"><b>MAXJOBS</b></a></td>
<td valign="top">Maximum number of jobs</td>
<td valign="top">1-9999, <b><u>*NOMAX</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDPJE.JOB"><b>JOB</b></a></td>
<td valign="top">Job name</td>
<td valign="top"><i>Name</i>, <b><u>*PGM</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#ADDPJE.JOBD"><b>JOBD</b></a></td>
<td valign="top">Job description</td>
<td valign="top">Single values: <b><u>*USRPRF</u></b>, *SBSD<br>Other values: <i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Job description</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="#ADDPJE.MAXUSE"><b>MAXUSE</b></a></td>
<td valign="top">Maximum number of uses</td>
<td valign="top">1-1000, <b><u>200</u></b>, *NOMAX</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDPJE.WAIT"><b>WAIT</b></a></td>
<td valign="top">Wait for job</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDPJE.POOLID"><b>POOLID</b></a></td>
<td valign="top">Pool identifier</td>
<td valign="top">1-10, <b><u>1</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="9"><a href="#ADDPJE.CLS"><b>CLS</b></a></td>
<td valign="top">Class</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="9">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Class</td>
<td valign="top">
Single values: <b><u>*SBSD</u></b><br>Other values: <i>Qualified object name</i></td>
</tr>
<tr>
<td valign="top" style="padding-left:10pt">Qualifier 1: Class</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top" style="padding-left:10pt">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top">Element 2: Number of jobs to use class</td>
<td valign="top">
0-32766, <b><u>*CALC</u></b>, *MAXJOBS</td>
</tr>
<tr>
<td valign="top">Element 3: Class</td>
<td valign="top">
Single values: <b><u>*NONE</u></b>, *SBSD<br>Other values: <i>Qualified object name</i></td>
</tr>
<tr>
<td valign="top" style="padding-left:10pt">Qualifier 1: Class</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top" style="padding-left:10pt">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top">Element 4: Number of jobs to use class</td>
<td valign="top">
0-32766, <b><u>*CALC</u></b>, *MAXJOBS</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#ADDPJE.THDRSCAFN"><b>THDRSCAFN</b></a></td>
<td valign="top">Thread resources affinity</td>
<td valign="top">Single values: <b><u>*SYSVAL</u></b><br>Other values: <i>Element list</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Group</td>
<td valign="top">
*NOGROUP, *GROUP</td>
</tr>
<tr>
<td valign="top">Element 2: Level</td>
<td valign="top">
*NORMAL, *HIGH</td>
</tr>
<tr>
<td valign="top"><a href="#ADDPJE.RSCAFNGRP"><b>RSCAFNGRP</b></a></td>
<td valign="top">Resources affinity group</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="ADDPJE.SBSD"></a>
<h3>Subsystem description (SBSD)</h3>
<p>Specifies the name and library of the subsystem description to which the prestart job entry is being added. If no library qualifier is given, *LIBL is used to find the subsystem description.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: Subsystem description</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the subsystem description to which the prestart job entry is being added.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the thread's library list are searched until a match is found.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is used to locate the object. 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 subsystem description's library to which the prestart job entry is being added.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.PGM"></a>
<h3>Program (PGM)</h3>
<p>Specifies the name and library of the program run by the prestart job. This program name is used to match an incoming request with an available prestart job. If the program does not exist when the entry is added, a library qualifier must be specified because the qualified name is kept in the subsystem description.
</p>
<p>
<b>Note: </b>Two entries with the same program name can exist in a single subsystem description, but they must have different library names.
</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 run by the prestart job.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the thread's library list are searched until a match is found.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is used to locate the object. 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 library of the program to be run by the prestart job.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.USER"></a>
<h3>User profile (USER)</h3>
<p>Specifies the name of the user profile under which the prestart job is initiated. In addition, the current user profile of the prestart job is set to this user whenever the job waits for a request to handle.
</p>
<p>
<b>Note: </b>When a prestart job is given a request to handle, the current user profile of the job is updated. Refer to the Work Management guide for information on how this profile is determined. This change in current user profile is for authority checking only. None of the other attributes of the user profile, such as the current library (CURLIB) or the initial program to call (INLPGM), are given to the prestart job.
</p>
<dl>
<dt><b><u>QUSER</u></b></dt>
<dd>The IBM-supplied QUSER user profile is used.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the user profile used for the prestart job.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.STRJOBS"></a>
<h3>Start jobs (STRJOBS)</h3>
<p>Specifies whether the prestart jobs should be started at the time the subsystem is started.
</p>
<p>
<b>Note: </b>Changing this value when the subsystem is active will produce no effect until the subsystem is ended and started again.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>The prestart jobs are started at the time the subsystem is started.
</dd>
<dt><b>*NO</b></dt>
<dd>The prestart jobs are not started at the time the subsystem is started. The Start Prestart Jobs (STRPJ) command must be used to start these prestart jobs.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.INLJOBS"></a>
<h3>Initial number of jobs (INLJOBS)</h3>
<p>Specifies the initial number of prestart jobs that are started when the subsystem specified on the <b>Subsystem description (SBSD)</b> parameter is started.
</p>
<p><b>Notes:</b>
</p>
<ol>
<li>The value of this parameter must be less than or equal to the value of the <b>Maximum number of jobs (MAXJOBS)</b> parameter.
</li>
<li>The value of this parameter must be greater than or equal to the value of the <b>Threshold (THRESHOLD)</b> parameter.
</li>
</ol>
<dl>
<dt><b><u>3</u></b></dt>
<dd>Three prestart jobs are started when the subsystem is started.
</dd>
<dt><b><i>1-9999</i></b></dt>
<dd>Specify the number of prestart jobs that are started when the subsystem is started. Valid values range from 1 through 9999.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.THRESHOLD"></a>
<h3>Threshold (THRESHOLD)</h3>
<p>Specifies when additional prestart jobs are started. When the pool of available jobs (jobs available to service requests) is reduced below this number, more jobs (specified on the <b>Additional number of jobs (ADLJOBS)</b> parameter) are started and added to the available pool.
</p>
<p>
<b>Note: </b>The value of this parameter must be less than or equal to the value specified on the <b>Initial number of jobs (INLJOBS)</b> parameter.
</p>
<dl>
<dt><b><u>2</u></b></dt>
<dd>When one prestart job is available, the number of jobs specified on the <b>Additional number of jobs (ADLJOBS)</b> parameter are started.
</dd>
<dt><b><i>1-9999</i></b></dt>
<dd>Specify the minimum number of prestart jobs that must be available before additional prestart jobs are started. Valid values range from 1 through 9999.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.ADLJOBS"></a>
<h3>Additional number of jobs (ADLJOBS)</h3>
<p>Specifies the additional number of prestart jobs that are started when the number of prestart jobs drops below the value specified on the <b>Threshold (THRESHOLD)</b> parameter.
</p>
<p>
<b>Note: </b>The value specified on this parameter must be less than the value specified on the <b>Maximum number of jobs (MAXJOBS)</b> parameter.
</p>
<dl>
<dt><b><u>2</u></b></dt>
<dd>Two additional prestart jobs are started.
</dd>
<dt><b><i>0-999</i></b></dt>
<dd>Specify the number of additional prestart jobs to start. Valid values range from 0 through 999.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.MAXJOBS"></a>
<h3>Maximum number of jobs (MAXJOBS)</h3>
<p>Specifies the maximum number of prestart jobs that can be active at the same time for this prestart job entry. This value includes prestart jobs that are servicing a procedure start request, prestart jobs that are waiting to service a procedure start request, and prestart jobs that are being started as a result of reaching the value specified on the <b>Threshold (THRESHOLD)</b> parameter.
</p>
<p><b>Notes:</b>
</p>
<ol>
<li>The value of this parameter must be greater than or equal to the value specified on the <b>Initial number of jobs (INLJOBS)</b> parameter.
</li>
<li>The value of this parameter must be greater than the value specified on the <b>Additional number of jobs (ADLJOBS)</b> parameter.
</li>
</ol>
<dl>
<dt><b><u>*NOMAX</u></b></dt>
<dd>There is no maximum number of prestart jobs that can be active at the same time.
</dd>
<dt><b><i>1-9999</i></b></dt>
<dd>Specify the maximum number of prestart jobs that can be active at the same time. Valid values range from 1 through 9999.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.JOB"></a>
<h3>Job name (JOB)</h3>
<p>Specifies the name of the prestart job that is started. Prestart jobs are automatically started when the subsystem, specified on the <b>Subsystem description (SBSD)</b> parameter, is started if STRJOBS(*YES) is specified.
</p>
<dl>
<dt><b><u>*PGM</u></b></dt>
<dd>The job name is the same as the program name specified on the <b>Program (PGM)</b> parameter.
</dd>
<dt><b><i>job-name</i></b></dt>
<dd>Specify the name of the prestart job.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.JOBD"></a>
<h3>Job description (JOBD)</h3>
<p>Specifies the qualified name of the job description used for the prestart job. If the job description does not exist when the entry is added, a library qualifier must be specified because the qualified job description name is kept in the subsystem description.
</p>
<p>
<b>Note: </b>Only a user with all object (*ALLOBJ) special authority is allowed to add or change an entry for which the job description does not exist.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*USRPRF</u></b></dt>
<dd>The job description name entered in the user profile specified on the <b>User profile (USER)</b> parameter is used.
</dd>
<dt><b>*SBSD</b></dt>
<dd>The job description having the same name as the subsystem description named on the <b>Subsystem description (SBSD)</b> parameter is used.
</dd>
</dl>
<p><b>Qualifier 1: Job description</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the job description being used for this prestart job.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the thread's library list are searched until a match is found.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is used to locate the object. 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 job description's library name.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.MAXUSE"></a>
<h3>Maximum number of uses (MAXUSE)</h3>
<p>Specifies the maximum number of requests that can be handled by each prestart job in the pool before the job is ended.
</p>
<dl>
<dt><b><u>200</u></b></dt>
<dd>A prestart job for this entry can service a maximum of 200 requests before it is ended and another prestart job is started to take its place.
</dd>
<dt><b>*NOMAX</b></dt>
<dd>There is no maximum number of program start requests that a prestart job can handle. The job is not ended by the subsystem.
<p>
<b>Note: </b>Avoid having jobs exist for long periods of time since this can cause the job log to exceed the maximum size. Also avoid situations in which jobs can create more than the maximum number of spooled files, or can exceed the maximum processing unit time or the maximum temporary storage allocation.
</p>
</dd>
<dt><b><i>1-1000</i></b></dt>
<dd>Specify the maximum number of requests that a prestart job can handle before it is ended. Valid values range from 1 through 1000.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.WAIT"></a>
<h3>Wait for job (WAIT)</h3>
<p>Specifies whether program start requests wait for a prestart job to become available or are rejected if a prestart job is not immediately available when the procedure start request is received.
</p>
<p>
<b>Note: </b>Refer to the CL information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter to determine the time-out considerations for the communications type being used.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>Program start requests wait until there is an available prestart job or a prestart job is started to service the request.
</dd>
<dt><b>*NO</b></dt>
<dd>Program start requests are rejected if there is no prestart job immediately available when the procedure start request is received.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.POOLID"></a>
<h3>Pool identifier (POOLID)</h3>
<p>Specifies the subsystem pool identifier that the prestart jobs will run in.
</p>
<dl>
<dt><b><u>1</u></b></dt>
<dd>The prestart jobs run in pool 1.
</dd>
<dt><b><i>1-10</i></b></dt>
<dd>Specify the subsystem pool identifier in which the prestart jobs run. Valid values range from 1 through 10.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.CLS"></a>
<h3>Class (CLS)</h3>
<p>Specifies the name and library of the classes that the prestart jobs run under and how many prestart jobs run under each class. Jobs start by using the first class specified until the number of jobs specified for the first class is reached. After the number of jobs specified for the first class is reached, jobs are started under the second class. If the class does not exist when the prestart job entry is added, a library qualifier must be specified because the qualified class name is kept in the subsystem description.
</p>
<p>
<b>Note: </b>Two classes can be specified on this parameter.
</p>
<p><b>Element 1: Class</b>
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*SBSD</u></b></dt>
<dd>The class having the same name as the subsystem description, specified on the <b>Subsystem description (SBSD)</b> parameter, is used for prestart jobs.
</dd>
</dl>
<dl>
<dt><b></b></dt>
<dd>
<p><b>Qualifier 1: Class</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the class being used for prestart jobs.
</dd>
</dl>
</dd>
<dt><b></b></dt>
<dd>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the thread's library list are searched until a match is found.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is used to locate the object. 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 library name of the class being used for prestart jobs.
</dd>
</dl>
</dd>
</dl>
<p><b>Element 2: Number of jobs to use class</b>
</p>
<dl>
<dt><b><u>*CALC</u></b></dt>
<dd>The system calculates how many prestart jobs use this class. If only one class is specified and *CALC is specified, all of the jobs use that class. If two classes are specified and *CALC is specified for both, the first class is the value specified on the <b>Maximum number of jobs (MAXJOBS)</b> parameter divided by two, and the second class is the value of the MAXJOBS parameter minus the value calculated for the first class. If a specific number of jobs is specified for either class and *CALC is specified for the other class, the system calculates the difference between MAXJOBS and the specific number of jobs for the *CALC designation.
</dd>
<dt><b>*MAXJOBS</b></dt>
<dd>All of the prestart jobs use the specified class.
</dd>
<dt><b><i>0-32766</i></b></dt>
<dd>Specify the number of jobs that use this class. The sum of the values specified for both classes must total the value specified on the MAXJOBS parameter.
</dd>
</dl>
<p><b>Element 3: Class</b>
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>Specify this value if only one class is used for this prestart job entry.
</dd>
<dt><b>*SBSD</b></dt>
<dd>The class having the same name as the subsystem description, specified on the <b>Subsystem description (SBSD)</b> parameter, is used for prestart jobs.
</dd>
</dl>
<dl>
<dt><b></b></dt>
<dd>
<p><b>Qualifier 1: Class</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the class being used for prestart jobs.
</dd>
</dl>
</dd>
<dt><b></b></dt>
<dd>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the thread's library list are searched until a match is found.
</dd>
<dt><b>*CURLIB</b></dt>
<dd>The current library for the thread is used to locate the object. 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 library name of the class being used for prestart jobs.
</dd>
</dl>
</dd>
</dl>
<p><b>Element 4: Number of jobs to use class</b>
</p>
<dl>
<dt><b><u>*CALC</u></b></dt>
<dd>The system calculates how many prestart jobs use this class. If only one class is specified and *CALC is specified, all of the jobs use that class. If two classes are specified and *CALC is specified for both, the first class is the value specified on the <b>Maximum number of jobs (MAXJOBS)</b> parameter divided by two, and the second class is the value of the MAXJOBS parameter minus the value calculated for the first class. If a specific number of jobs is specified for either class and *CALC is specified for the other class, the system calculates the difference between MAXJOBS and the specific number of jobs for the *CALC designation.
</dd>
<dt><b>*MAXJOBS</b></dt>
<dd>All of the prestart jobs use the specified class.
</dd>
<dt><b><i>0-32766</i></b></dt>
<dd>Specify the number of jobs that use this class. The sum of the values specified for both classes must total the value specified on the MAXJOBS parameter.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.THDRSCAFN"></a>
<h3>Thread resources affinity (THDRSCAFN)</h3>
<p>Specifies the affinity of threads to system resources.
</p>
<p><b>Element 1: Group</b>
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*SYSVAL</u></b></dt>
<dd>When the prestart job is started, the thread resources affinity value from the QTHDRSCAFN system value will be used.
</dd>
</dl>
<dl>
<dt><b>*NOGROUP</b></dt>
<dd>Prestart jobs will have affinity to a group of processors and memory. Secondary threads running under the job will not necessarily have affinity to the same group of processors and memory.
</dd>
<dt><b>*GROUP</b></dt>
<dd>Prestart jobs will have affinity to a group of processors and memory. Secondary threads running under the job will all have affinity to the same group of processors and memory as the initial thread.
</dd>
</dl>
<p><b>Element 2: Level</b>
</p>
<dl>
<dt><b>*NORMAL</b></dt>
<dd>A thread will use any processor or memory in the system if the resources it has affinity to are not readily available.
</dd>
<dt><b>*HIGH</b></dt>
<dd>A thread will only use the resources it has affinity to, and will wait until they become available if necessary.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDPJE.RSCAFNGRP"></a>
<h3>Resources affinity group (RSCAFNGRP)</h3>
<p>Specifies whether or not prestart jobs using this entry will be grouped together having affinity to the same system resources (processors and memory). A value of *YES for this parameter will take precedence over the QTHDRSCAFN system value when set to *NOGROUP.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>Prestart jobs that use this entry will not be grouped together.
</dd>
</dl>
<dl>
<dt><b>*YES</b></dt>
<dd>Prestart jobs that use this entry will be grouped together such that they will have affinity to the same system resources. Jobs that share data in memory may perform better if they have affinity to the same resources.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ADDPJE.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Specifying Additional Prestart Jobs</b>
</p>
<p>
<pre>
ADDPJE SBSD(QGPL/PJSBS) PGM(QGPL/PGM1) INLJOBS(15)
THRESHOLD(5) ADLJOBS(10) WAIT(*NO)
</pre>
</p>
<p>This command adds a prestart job entry for the PGM1 program in the QGPL library to the PJSBS subsystem description contained in the QGPL library. The entry specifies that 15 prestart jobs (program PGM1 in the QGPL library) are started when subsystem PJSBS in the QGPL library is started. When the pool of available prestart jobs is reduced to four (because the prestart jobs are servicing requests specified for program PGM1 in the QGPL library), ten additional jobs are started. If no prestart jobs are available for this entry when a request is received, the request is rejected.
</p>
<p><b>Example 2: Specifying Maximum Number of Prestart Jobs</b>
</p>
<p>
<pre>
ADDPJE SBSD(QGPL/PJSBS) PGM(QGPL/PGM2) USER(PJUSER)
MAXJOBS(100) CLS(QGPL/CLS1 75 QGPL/CLS2 *CALC)
MAXUSE(50)
</pre>
</p>
<p>This command adds a prestart job entry for the PGM2 program in the QGPL library to the PJSBS subsystem description contained in the QGPL library. The entry specifies that the prestart job for this entry runs under the PJUSER user profile. The maximum number of prestart jobs that can be active at the same time for this entry is 100. Each prestart job in the pool can handle 50 requests before the job is ended. If 100 prestart jobs are active at the same time for this entry, 75 of them would use CLS1 in the QGPL library, and 25 of them would use CLS2 in the QGPL library. If 50 prestart jobs are active at the same time for this entry, all 50 of them would use class CLS1 in the QGPL library.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ADDPJE.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF1691</b></dt>
<dd>Active subsystem description may or may not have changed.
</dd>
<dt><b>CPF1697</b></dt>
<dd>Subsystem description &amp;1 not changed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDPJE.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>