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

281 lines
11 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>End Prestart Jobs (ENDPJ)</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="ENDPJ.Top_Of_Page"></a>
<h2>End Prestart Jobs (ENDPJ)</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="#ENDPJ.PARAMETERS.TABLE">Parameters</a><br>
<a href="#ENDPJ.COMMAND.EXAMPLES">Examples</a><br>
<a href="#ENDPJ.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="ENDPJ"></a>
<p>The End Prestart Jobs (ENDPJ) command ends all jobs and any associated inline data files for a prestart job entry in an active subsystem.
</p>
<p>Jobs can be waiting for a request or can already be associated with a request. Spooled output files associated with the jobs being ended can also be ended or allowed to remain on the output queue. The limit on the number of messages being written to each of the job logs can also be changed.
</p>
<p><b>Restrictions:</b>
</p>
<ol>
<li>To use this command, you must have:
<ul>
<li>job control (*JOBCTL) special authority.
</li>
</ul>
</li>
<li>Spooled output files on output queues in independent auxiliary storage pools (ASPs 33-255) are not deleted.
</li>
</ol>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPJ.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="ENDPJ.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"><a href="#ENDPJ.SBS"><b>SBS</b></a></td>
<td valign="top">Subsystem</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#ENDPJ.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="#ENDPJ.OPTION"><b>OPTION</b></a></td>
<td valign="top">How to end</td>
<td valign="top"><b><u>*CNTRLD</u></b>, *IMMED</td>
<td valign="top">Optional, Positional 3</td>
</tr>
<tr>
<td valign="top"><a href="#ENDPJ.DELAY"><b>DELAY</b></a></td>
<td valign="top">Controlled end delay time</td>
<td valign="top">1-999999, <b><u>30</u></b></td>
<td valign="top">Optional, Positional 4</td>
</tr>
<tr>
<td valign="top"><a href="#ENDPJ.SPLFILE"><b>SPLFILE</b></a></td>
<td valign="top">Delete spooled files</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional, Positional 5</td>
</tr>
<tr>
<td valign="top"><a href="#ENDPJ.LOGLMT"><b>LOGLMT</b></a></td>
<td valign="top">Maximum log entries</td>
<td valign="top"><i>Integer</i>, <b><u>*SAME</u></b>, *NOMAX</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#ENDPJ.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="ENDPJ.SBS"></a>
<h3>Subsystem (SBS)</h3>
<p>Specifies the name of the active subsystem that contains the prestart job entry.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the active subsystem that contains the prestart job entry.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPJ.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ENDPJ.PGM"></a>
<h3>Program (PGM)</h3>
<p>Specifies the qualified name of the program that identifies the prestart job entry.
</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 that identifies the prestart job entry.
</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 where the program is located.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPJ.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ENDPJ.OPTION"></a>
<h3>How to end (OPTION)</h3>
<p>Specifies whether the jobs are ended in a controlled manner, which lets the application program perform end-of-job processing, or the jobs end immediately.
</p>
<dl>
<dt><b><u>*CNTRLD</u></b></dt>
<dd>The jobs are ended in a controlled manner. This allows the program that is running to perform end-of-job processing. When a job being ended has a signal handling procedure for the asynchronous signal SIGTERM, the SIGTERM signal is generated for that job. The application has the amount of time specified on the DELAY parameter to complete cleanup before the job is ended.
</dd>
<dt><b>*IMMED</b></dt>
<dd>The jobs end immediately. When a job being ended has a signal handling procedure for the asynchronous signal SIGTERM, the SIGTERM signal is generated for that job and the QENDJOBLMT system value specifies the time limit. Other than by handling the SIGTERM signal, the program that is running is not allowed to perform end-of-job processing.
<p>
<b>Note: </b>The *IMMED value might cause undesirable results if data has been partially updated. This value should be used only after a controlled end has been attempted unsuccessfully.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPJ.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ENDPJ.DELAY"></a>
<h3>Controlled end delay time (DELAY)</h3>
<p>Specifies the time (in seconds) allowed for the program to complete end-of-job processing during a controlled end. If the end-of-job processing is not completed before the end of the delay time, the job is immediately ended. Only system cleanup is performed. This parameter is not valid if *IMMED is specified for the <b>How to end (OPTION)</b> parameter.
</p>
<dl>
<dt><b><u>30</u></b></dt>
<dd>A maximum delay time of 30 seconds is allowed for end-of-job processing before each prestart job is ended.
</dd>
<dt><b><i>1-999999</i></b></dt>
<dd>Specify the maximum delay time (in seconds) before each prestart job is ended.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPJ.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ENDPJ.SPLFILE"></a>
<h3>Delete spooled files (SPLFILE)</h3>
<p>Specifies whether spooled output files created by the jobs are retained for normal processing by a writer or deleted.
</p>
<dl>
<dt><b>*NO</b></dt>
<dd>The spooled output files created by the jobs being ended are retained for normal processing by a writer. When the job ends, the spooled file action (SPLFACN) job attribute determines whether spooled files are detached from the job or kept with the job.
</dd>
<dt><b>*YES</b></dt>
<dd>The spooled output files created by the jobs being ended and which are on output queues in the system auxiliary storage pool (ASP 1) or in a basic user ASP (ASPs 2-32) are deleted. Spooled output files on output queues in independent ASPs (ASPs 33-255) are not deleted. The job log is not deleted.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPJ.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ENDPJ.LOGLMT"></a>
<h3>Maximum log entries (LOGLMT)</h3>
<p>Specifies the maximum number of entries in the message queue of the jobs being ended that are written to the job log. This parameter can be used to limit the number of messages written to the job log printer file, QPJOBLOG, for each job that is ended.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The message logging limit does not change. If the logging limit was not changed for these prestart jobs on a previous command, *NOMAX is the value used by the system.
</dd>
<dt><b>*NOMAX</b></dt>
<dd>There is no limit to the number of messages being logged. All messages on each job message queue are written to the job log for each job.
</dd>
<dt><b><i>integer-number</i></b></dt>
<dd>Specify the maximum number of messages being written to the job log for each job. This value is the maximum only if it is entered before the job log contains that number of messages. Otherwise, the limit only stops the process of writing any more messages to the job log. If 0 is specified before any messages are written to the log, no job log is produced.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPJ.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ENDPJ.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Ending a Job Immediately</b>
</p>
<p>
<pre>
ENDPJ SBS(SBS1) PGM(PJLIB/PJPGM) OPTION(*IMMED)
SPLFILE(*YES)
</pre>
</p>
<p>This command ends all jobs associated with prestart job entry PJPGM in subsystem SBS1 immediately. Spooled output produced by these prestart jobs is deleted and the job log is saved.
</p>
<p><b>Example 2: Delaying a Job End</b>
</p>
<p>
<pre>
ENDPJ SBS(SBS2) PGM(PJPGM2) OPTION(*CNTRLD)
DELAY(50) SPLFILE(NO)
</pre>
</p>
<p>This command ends all the jobs associated with prestart job entry PJPGM2 in subsystem SBS2. Spooled output for these prestart jobs is saved for normal processing by the spooling writer. The jobs have 50 seconds to perform any cleanup routines, after which they are immediately ended.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPJ.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ENDPJ.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF0922</b></dt>
<dd>End Prestart Jobs command not allowed now.
</dd>
<dt><b>CPF1083</b></dt>
<dd>Prestart jobs already are ending controlled.
</dd>
<dt><b>CPF1084</b></dt>
<dd>Prestart jobs are already ending immediately.
</dd>
<dt><b>CPF1227</b></dt>
<dd>No authority has been granted to use command.
</dd>
<dt><b>CPF1317</b></dt>
<dd>No response from subsystem for job &amp;3/&amp;2/&amp;1.
</dd>
<dt><b>CPF1351</b></dt>
<dd>Function check occurred in subsystem for job &amp;3/&amp;2/&amp;1.
</dd>
<dt><b>CPF1834</b></dt>
<dd>Prestart job entry for program &amp;1 in &amp;2 does not exist.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPJ.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>