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

141 lines
6.1 KiB
HTML
Raw 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 Printer Emulation (ENDPRTEML)</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="ENDPRTEML.Top_Of_Page"></a>
<h2>End Printer Emulation (ENDPRTEML)</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="#ENDPRTEML.PARAMETERS.TABLE">Parameters</a><br>
<a href="#ENDPRTEML.COMMAND.EXAMPLES">Examples</a><br>
<a href="#ENDPRTEML.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="ENDPRTEML"></a>
<p>The End Printer Emulation (ENDPRTEML) command ends printer emulation without ending the job. If there is another request in the job, that request is then processed.
</p>
<p>This command closes the file to the host system, then writes the last data received from the host system out to the spooled file or printer by closing the printer file.
</p>
<p>In some cases, the request does not take effect immediately. The request is delayed while any of the following conditions exist in the printer emulation request:
</p>
<ul>
<li>Printing a block sent from the host system.
</li>
<li>Waiting for a printer error to be cleared (for example, a paper jam).
</li>
<li>Waiting for a reply to a PA1 or PA2 inquiry message.
</li>
<li>Waiting for error recovery to be done to the host system or printer device.
</li>
<li>The job has been held by using the HLDJOB command. When the condition is cleared, the End Printer Emulation request takes effect, and the printer emulation request ends.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPRTEML.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="ENDPRTEML.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="#ENDPRTEML.EMLDEV"><b>EMLDEV</b></a></td>
<td valign="top">Emulation device, or</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#ENDPRTEML.EMLLOC"><b>EMLLOC</b></a></td>
<td valign="top">Emulation location</td>
<td valign="top"><i>Communications name</i></td>
<td valign="top">Optional, Positional 2</td>
</tr>
<tr>
<td valign="top"><a href="#ENDPRTEML.PRTDEV"><b>PRTDEV</b></a></td>
<td valign="top">Print device</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Optional, Positional 3</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#ENDPRTEML.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="ENDPRTEML.EMLDEV"></a>
<h3>Emulation device (EMLDEV)</h3>
<p>Specifies the name of a printer emulation device that receives data from the host system. This device must be a 3287 Printer (EMLDEV(3287)) or a 3289 Printer (EMLDEV(3289)), and must currently be operating as an LU1 unit. The printer emulation job or session that is using this device will be informed of the request. If the LU1 session is between brackets, printer emulation starts a bracket and sends the PA key signal to the host system with a Change Direction (CD) request. If the LU session is in receive condition, a signal (request for CD) is sent to the host system, and printer emulation waits for the CD. When the CD is received, the PA key signal is sent to the host system with the CD. If the LU session is in send condition, the PA key signal is sent to the host system with the CD.
</p>
<p>Either this parameter, or the <b>Emulation location (EMLLOC)</b> parameter and the <b>Print device (PRTDEV)</b> parameter is required.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPRTEML.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ENDPRTEML.EMLLOC"></a>
<h3>Emulation location (EMLLOC)</h3>
<p>Specifies the remote location name associated with this session. The location name is defined during device description configuration and refers to the remote location where communication takes place. This value must be the same as the value specified for the Emulation location (EMLLOC) parameter on the Start Printer Emulation (STRPRTEML) command.
</p>
<p>Either this parameter and the <b>Print device (PRTDEV)</b> parameter, or the <b>Emulation device (EMLDEV)</b> parameter is required.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPRTEML.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ENDPRTEML.PRTDEV"></a>
<h3>Print device (PRTDEV)</h3>
<p>Specifies the name of a printer device that is used to print the spooled output. This value must be the same as the value specified for the Printer device (PRTDEV) parameter on the Start Printer Emulation (STRPRTEML) command. This parameter must be specified when the EMLLOC parameter is specified.
</p>
<p>Either this parameter and the <b>Emulation location (EMLLOC)</b> parameter, or the <b>Emulation device (EMLDEV)</b> parameter is required.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPRTEML.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ENDPRTEML.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
ENDPRTEML EMLDEV(HOSTPRT3)
</pre>
</p>
<p>This command ends the printer emulation request that is using the device HOSTPRT3.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPRTEML.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ENDPRTEML.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF8599</b></dt>
<dd>End printer emulation function not performed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ENDPRTEML.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>