240 lines
10 KiB
HTML
240 lines
10 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>End System (ENDSYS)</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="ENDSYS.Top_Of_Page"></a>
|
|
<h2>End System (ENDSYS)</h2>
|
|
<table width="100%">
|
|
<tr>
|
|
<td valign="top" align="left"><b>Where allowed to run: </b>Interactive environments (*INTERACT *IPGM *IREXX *EXEC)<br>
|
|
<b>Threadsafe: </b>No
|
|
</td>
|
|
<td valign="top" align="right">
|
|
<a href="#ENDSYS.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#ENDSYS.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#ENDSYS.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="ENDSYS"></a>
|
|
<p>The End System (ENDSYS) command ends most activity on the system and leaves the system in a condition in which only the console is active in the controlling subsystem. This is done so that the operator can do things like backing up the system or loading new programs. This condition is called the restricted state and is required for operations like saving the system or reclaiming storage. If two jobs are active in the controlling subsystem at the console, neither of the jobs is forced to end. The ENDSYS command cannot complete running until you end one of the jobs (either by signing off in one job or by ending one job from the other).
|
|
</p>
|
|
<p>All active subsystems are notified that an end system operation is in process. No new jobs or routing steps can be accepted by the subsystems. This command also specifies what happens to all active work.
|
|
</p>
|
|
<p>Interactive jobs that are transferred to a job queue by the Transfer Job (TFRJOB) command are ended as part of subsystem ending. If an initial program load (IPL) occurs while either a batch or interactive job is on a job queue (because of the TFRJOB command), that job is removed from the job queue during IPL and its job log is produced.
|
|
</p>
|
|
<p><b>Restriction:</b> This command can be entered only in an interactive job in the controlling subsystem. To use this command, the user must have job control (*JOBCTL) authority. This command is not allowed in a pass-through job or in a workstation function job.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDSYS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="ENDSYS.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="#ENDSYS.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 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#ENDSYS.DELAY"><b>DELAY</b></a></td>
|
|
<td valign="top">Controlled end delay time</td>
|
|
<td valign="top">0-99999, <b><u>*NOLIMIT</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#ENDSYS.ENDSBSOPT"><b>ENDSBSOPT</b></a></td>
|
|
<td valign="top">End subsystem option</td>
|
|
<td valign="top">Single values: <b><u>*DFT</u></b><br>Other values (up to 3 repetitions): *NOJOBLOG, *CHGPTY, *CHGTSL</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#ENDSYS.CONFIRM"><b>CONFIRM</b></a></td>
|
|
<td valign="top">Confirm</td>
|
|
<td valign="top"><b><u>*ENVVAR</u></b>, *YES, *NO</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDSYS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="ENDSYS.OPTION"></a>
|
|
<h3>How to end (OPTION)</h3>
|
|
<p>Specifies whether all active jobs are ended in a controlled manner (which lets the application programs perform end of processing) or immediately. In either case, the system performs certain job cleanup functions.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*CNTRLD</u></b></dt>
|
|
<dd>The jobs are ended in a controlled manner. This allows the programs that are running to perform cleanup (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 for the DELAY parameter to complete cleanup before the job is ended.
|
|
</dd>
|
|
<dt><b>*IMMED</b></dt>
|
|
<dd>The jobs are ended 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 a time limit. Other than by handling the SIGTERM signal, the programs that are running are not allowed to perform any cleanup.
|
|
<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="#ENDSYS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="ENDSYS.DELAY"></a>
|
|
<h3>Controlled end delay time (DELAY)</h3>
|
|
<p>Specifies the amount of time (in seconds) that the controlled end operation is allowed. If this amount of time is exceeded and the end operation is not complete, any jobs still being processed are ended immediately, except for those running long-running instructions.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NOLIMIT</u></b></dt>
|
|
<dd>The amount of time in which to complete a controlled end is not limited.
|
|
</dd>
|
|
<dt><b><i>0-99999</i></b></dt>
|
|
<dd>Specify the number of seconds in which the end operation is allowed to complete.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDSYS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="ENDSYS.ENDSBSOPT"></a>
|
|
<h3>End subsystem option (ENDSBSOPT)</h3>
|
|
<p>Specifies the options to take when ending the active subsystems. In general, specifying these options will improve the performance of the ENDSYS command. Each option has certain side effects that you need to analyze before using that option.
|
|
</p>
|
|
<p>This parameter has no effect on jobs that are already in the ending status.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*DFT</u></b></dt>
|
|
<dd>The subsystems will end with no special ending options.
|
|
<ul>
|
|
<li>Joblogs will be produced.
|
|
</li>
|
|
<li>The run priority will not change.
|
|
</li>
|
|
<li>The timeslice value will not change.
|
|
</li>
|
|
</ul>
|
|
</dd>
|
|
<dt><b>*NOJOBLOG</b></dt>
|
|
<dd>No joblogs will be created for jobs that are ended due to this command being invoked. This includes subsystem monitor jobs and all user jobs in the subsystem. This option can significantly reduce the amount of time necessary to complete the ENDSYS command. However, if a problem occurs in a job, there will be no joblog to record the problem, which may make problem diagnosis difficult or impossible.
|
|
</dd>
|
|
<dt><b>*CHGPTY</b></dt>
|
|
<dd>The CPU priority of jobs that are ending is changed to a higher value (worse priority). The remaining active jobs on the system may have better performance when *CHGPTY is specified. However, jobs that are ending may take longer to finish. This option is ignored if the subsystem is ending controlled. But if the DELAY time limit expires, this option will take effect immediately.
|
|
</dd>
|
|
<dt><b>*CHGTSL</b></dt>
|
|
<dd>The timeslice of jobs that are ending is changed to a lower value. The remaining active jobs on the system may have better performance when *CHGTSL is specified. However, jobs that are ending may take longer to finish. This option is ignored if the subsystem is ending controlled. But if the DELAY time limit expires, this option will take effect immediately.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDSYS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="ENDSYS.CONFIRM"></a>
|
|
<h3>Confirm (CONFIRM)</h3>
|
|
<p>Specifies whether the request should be confirmed before the system is ended.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*ENVVAR</u></b></dt>
|
|
<dd>The value in environment variable QIBM_ENDSYS_CONFIRM is used to determine whether the request should be confirmed. If the value is set to *YES or *NO, the action described below for that value is taken. If the environment variable is not defined or not set to one of these values, then there is no confirmation.
|
|
</dd>
|
|
<dt><b>*YES</b></dt>
|
|
<dd>A confirmation panel is displayed when the ENDSYS command is issued.
|
|
</dd>
|
|
<dt><b>*NO</b></dt>
|
|
<dd>There is no confirmation when the ENDSYS command is issued.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDSYS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="ENDSYS.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Ending System Activity</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
ENDSYS
|
|
</pre>
|
|
</p>
|
|
<p>This command ends the system activity after all active jobs in the system are allowed to perform their own end of processes. The amount of time the end can take is not limited.
|
|
</p>
|
|
<p><b>Example 2: Ending System Activity After Jobs are Ended</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
ENDSYS OPTION(*IMMED)
|
|
</pre>
|
|
</p>
|
|
<p>This command ends system activity after all active jobs are immediately ended.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDSYS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="ENDSYS.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p><b><u>*ESCAPE Messages</u></b>
|
|
</p>
|
|
<dl>
|
|
<dt><b>CPF1001</b></dt>
|
|
<dd>Wait time expired for system response.
|
|
</dd>
|
|
<dt><b>CPF1017</b></dt>
|
|
<dd>ENDSYS not allowed when console powered or varied off.
|
|
</dd>
|
|
<dt><b>CPF1032</b></dt>
|
|
<dd>System ending with *CNTRLD option.
|
|
</dd>
|
|
<dt><b>CPF1033</b></dt>
|
|
<dd>System ending with *IMMED option.
|
|
</dd>
|
|
<dt><b>CPF1034</b></dt>
|
|
<dd>All subsystems ending with *CNTRLD option.
|
|
</dd>
|
|
<dt><b>CPF1035</b></dt>
|
|
<dd>Subsystems ending with *IMMED option.
|
|
</dd>
|
|
<dt><b>CPF1036</b></dt>
|
|
<dd>System powering down with *CNTRLD option.
|
|
</dd>
|
|
<dt><b>CPF1037</b></dt>
|
|
<dd>System powering down with *IMMED option.
|
|
</dd>
|
|
<dt><b>CPF1038</b></dt>
|
|
<dd>No authority to use command.
|
|
</dd>
|
|
<dt><b>CPF1051</b></dt>
|
|
<dd>Command can only be run in controlling subsystem.
|
|
</dd>
|
|
<dt><b>CPF1082</b></dt>
|
|
<dd>Controlling subsystem already ending to single job.
|
|
</dd>
|
|
<dt><b>CPF1091</b></dt>
|
|
<dd>Function check occurred in system arbiter.
|
|
</dd>
|
|
<dt><b>CPF18C3</b></dt>
|
|
<dd>Exit Point Program &1 cannot enter restricted state.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDSYS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|