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

147 lines
5.4 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!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 Receive (ENDRCV)</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="ENDRCV.Top_Of_Page"></a>
<h2>End Receive (ENDRCV)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>
<ul><li>Batch program (*BPGM)</li>
<li>Interactive program (*IPGM)</li>
</ul><b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#ENDRCV.PARAMETERS.TABLE">Parameters</a><br>
<a href="#ENDRCV.COMMAND.EXAMPLES">Examples</a><br>
<a href="#ENDRCV.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="ENDRCV"></a>
<p>The End Receive (ENDRCV) command is used to end (cancel) a request for input made by a previously issued RCVF or SNDRCVF command that had WAIT(*NO) specified. The ENDRCV command ends an input request even if the user enters the requested data at the display station at the same time that the command is processed. If the requested data is entered and is being sent to the program when the end receive operation is performed, the entered data is lost. If there is no outstanding input request, the command is ignored.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>This command is valid only for display files within CL procedures. It cannot be used for database files.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDRCV.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="ENDRCV.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="#ENDRCV.DEV"><b>DEV</b></a></td>
<td valign="top">Display device</td>
<td valign="top"><i>Name</i>, <b><u>*FILE</u></b></td>
<td valign="top">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#ENDRCV.OPNID"><b>OPNID</b></a></td>
<td valign="top">Open file identifier</td>
<td valign="top"><i>Simple name</i>, <b><u>*NONE</u></b></td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#ENDRCV.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="ENDRCV.DEV"></a>
<h3>Display device (DEV)</h3>
<p>Specifies the name of the display device for which the request for input is to be ended.
</p>
<dl>
<dt><b><u>*FILE</u></b></dt>
<dd>The name of the device whose response is to be ended. This device is in the device file that is declared in the <b>File (FILE)</b> parameter of the Declare File (DCLF) command. If the device file has more than one device name specified in it, *FILE cannot be specified.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the display device from which a response is to be ended.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDRCV.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ENDRCV.OPNID"></a>
<h3>Open file identifier (OPNID)</h3>
<p>Specifies the open file identifier that was declared on a preceding Declare File (DCLF) command in the same CL procedure. A CL variable cannot be specified for this parameter value.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No open file identifier is provided. This command will use the file associated with the DCLF command that had *NONE specified for the OPNID parameter. Only one file can be declared in a CL procedure with *NONE as the open file identifier.
</dd>
<dt><b><i>simple-name</i></b></dt>
<dd>Specify a name that matches the OPNID parameter value on a preceding DCLF command in the same CL procedure.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDRCV.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ENDRCV.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Ending Previous Receive</b>
</p>
<p>
<pre>
ENDRCV DEV(MYDISPLAY)
</pre>
</p>
<p>Assume that a RCVF command with WAIT(*NO) was issued earlier in the CL procedure to request input from the device file declared earlier in the DCLF command and from the display device MYDISPLAY. When this ENDRCV command is processed, that request for input from MYDISPLAY is ended.
</p>
<p><b>Example 2: Using an Open File Identifier</b>
</p>
<p>
<pre>
DCLF FILE(MYLIB/MYDSPFILE) RCDFMT(FMT1) OPNID(DSPFILE1)
:
SNDRCVF DEV(DSP02) RCDFMT(FMT1) OPNID(DSPFILE1) WAIT(*YES)
:
ENDRCV DEV(DSP02) OPNID(DSPFILE1)
</pre>
</p>
<p>This command ends the previous SNDRCVF (Send/Receive File) command's request for input from a workstation display device DSP02.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDRCV.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ENDRCV.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF0883</b></dt>
<dd>*FILE not valid in DEV parameter for file &amp;1.
</dd>
<dt><b>CPF4101</b></dt>
<dd>File &amp;2 in library &amp;3 not found or inline data file missing.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDRCV.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>