130 lines
5.1 KiB
HTML
130 lines
5.1 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 Request (ENDRQS)</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="ENDRQS.Top_Of_Page"></a>
|
|
<h2>End Request (ENDRQS)</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="#ENDRQS.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#ENDRQS.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#ENDRQS.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="ENDRQS"></a>
|
|
<p>The End Request (ENDRQS) command ends (cancels) a previously requested operation (command). One common use of the End Request (ENDRQS) command is to cancel a request that is currently stopped at a breakpoint. This command function is also available as an option on the System Request menu.
|
|
</p>
|
|
<p>If the End Request (ENDRQS) command cannot be processed immediately because a system function that cannot be interrupted is currently running, the command is delayed until interruption is allowed.
|
|
</p>
|
|
<p>When a request is ended, an escape message is sent to the request processing program that is currently called at the request level being canceled. Request processing programs can be canceled. Request processing programs can monitor for the escape message so that cleanup processing can be done when the request is canceled. The static storage and open files are reclaimed for any program that was called by the request processing program. None of the programs called by the request processing program is notified of the cancel, so they have no opportunity to stop processing.
|
|
</p>
|
|
<p>To become a request processing program, the program must receive a request message.
|
|
</p>
|
|
<p>If the ENDRQS command is in a program, that program must become a request processor before it issues this command.
|
|
</p>
|
|
<p>More information on how to set up a program to become a request processor is in the CL information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
|
|
</p>
|
|
<p>
|
|
<b>Note: </b>External objects that are locked by the Allocate Object (ALCOBJ) command are not unlocked (deallocated) by the canceled request.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDRQS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="ENDRQS.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="#ENDRQS.RQSLVL"><b>RQSLVL</b></a></td>
|
|
<td valign="top">Request level</td>
|
|
<td valign="top"><i>Integer</i>, <b><u>*PRV</u></b></td>
|
|
<td valign="top">Optional, Positional 1</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDRQS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="ENDRQS.RQSLVL"></a>
|
|
<h3>Request level (RQSLVL)</h3>
|
|
<p>Specifies the (command) request level at which the command being canceled was entered.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*PRV</u></b></dt>
|
|
<dd>The command entered at the immediately previous level is being canceled.
|
|
</dd>
|
|
<dt><b><i>integer</i></b></dt>
|
|
<dd>Specify the request level at which the command being canceled was entered. All request levels from the level specified to the current level are canceled.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDRQS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="ENDRQS.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Ending a Command</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CALL PROGA (This is level 1)
|
|
:
|
|
Breakpoint occurs
|
|
CALL PROGB (This is level 2)
|
|
:
|
|
Breakpoint occurs
|
|
ENDRQS (This is level 3)
|
|
</pre>
|
|
</p>
|
|
<p>In this example, because RQSLVL(*PRV) is the default, the request made at level 2 is canceled. The user can then enter another command at level 2 or press F3 to show the PROGA breakpoint display again.
|
|
</p>
|
|
<p><b>Example 2: Ending a Command</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
CALL PROGA (This is level 1)
|
|
:
|
|
Breakpoint occurs
|
|
CALL PROGB (This is level 2)
|
|
:
|
|
Breakpoint occurs
|
|
ENDRQS RQSLVL(1) (This is level 3)
|
|
</pre>
|
|
</p>
|
|
<p>In this example, the request made at the highest level (CALL PROGA) is canceled. Consequently, any requests made between level 1 and level 3 are also canceled.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDRQS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="ENDRQS.ERROR.MESSAGES">Error messages</a> </h3>
|
|
<p>None
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#ENDRQS.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|