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

148 lines
7.7 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>Eject Emulation Output (EJTEMLOUT)</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="EJTEMLOUT.Top_Of_Page"></a>
<h2>Eject Emulation Output (EJTEMLOUT)</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="#EJTEMLOUT.PARAMETERS.TABLE">Parameters</a><br>
<a href="#EJTEMLOUT.COMMAND.EXAMPLES">Examples</a><br>
<a href="#EJTEMLOUT.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="EJTEMLOUT"></a>
<p>The Eject Emulation Output (EJTEMLOUT) command forces the last data received from the host system to the spooled file or printer by closing the printer file. After closing, another printer file is opened if *IMMED was specified on the Start Printer Emulation (STRPRTEML) command, so that more data can be spooled or printed. Printing then starts if *FILEEND was specified on the <b>Spooled output schedule (SCHEDULE)</b> parameter of the Create Printer File (CRTPRTF) command.
</p>
<p>
<b>Note: </b>When the emulation printer output is ejected, a page eject is also performed.
</p>
<p>More information about device emulation is available in the 3270 Device Emulation Support book, SC41-5408.
</p>
<p><b>Additional Considerations</b>
</p>
<p>You must use care when running this command. Before entering the command, you should look at the printed output (if SPOOL(*NO) was specified) or use the Display Spooled File (DSPSPLF) command to look at the spooled file (if SPOOL(*YES) was specified), to determine whether the printer data is at a logical breaking point. If this function is requested when printer emulation is in the middle of a group of print data from the host system, the group is split into separate printer files on the system.
</p>
<p>The effect of this command on the printer emulation output varies, depending on the values specified for the SPOOL and SCHEDULE parameters on the printer file.
</p>
<p>The possible values and their conditions are:
</p>
<ul>
<li>SPOOL(*NO): All the data received from the host system is printed, and the printer moves to the top of the next page.
</li>
<li>SPOOL(*YES) and SCHEDULE(*IMMED): If a writer is active to the output queue and is printing this file, all the data received from the host system is printed, and the printer moves to the top of the next page. If a writer is not active (printing this file), the effect is the same as if SCHEDULE(*FILEEND) was specified. Another printer file is opened on the output queue.
</li>
<li>SPOOL(*YES) and SCHEDULE(*FILEEND): The status of the printer file on the output queue changes from <i>open</i> to <i>ready to print</i>. If a writer is active, the data can be printed. Another printer file is opened on the output queue.
</li>
<li>SPOOL(*YES) and SCHEDULE(*JOBEND): The status of the printer file on the output queue changes from <i>open</i> to <i>closed</i>. The file is not ready to print until the end of the job is reached. Another printer file is opened on the output queue.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#EJTEMLOUT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="EJTEMLOUT.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="#EJTEMLOUT.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="#EJTEMLOUT.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="#EJTEMLOUT.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="#EJTEMLOUT.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="EJTEMLOUT.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="#EJTEMLOUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="EJTEMLOUT.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="#EJTEMLOUT.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="EJTEMLOUT.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="#EJTEMLOUT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="EJTEMLOUT.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
EJTEMLOUT EMLDEV(HOSTPRT1)
</pre>
</p>
<p>This command closes the printer file in the printer emulation job using the emulation device HOSTPRT1, forcing the latest data from the host system out to the spooled file or printer.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#EJTEMLOUT.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="EJTEMLOUT.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF8595</b></dt>
<dd>Eject emulation output function not performed.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#EJTEMLOUT.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>