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

143 lines
5.6 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>Hold Writer (HLDWTR)</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="HLDWTR.Top_Of_Page"></a>
<h2>Hold Writer (HLDWTR)</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="#HLDWTR.PARAMETERS.TABLE">Parameters</a><br>
<a href="#HLDWTR.COMMAND.EXAMPLES">Examples</a><br>
<a href="#HLDWTR.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="HLDWTR"></a>
<p>The Hold Writer (HLDWTR) command stops the specified writer at the end of a record, at the end of a spooled file, or at the end of a printed page. If multiple copies of a file are produced, the writer can be held at the end of the copy currently being produced. The writer is not stopped and the device is not made available to the system. The writer remains inactive until a Release Writer (RLSWTR) or End Writer (ENDWTR) command is issued. Data is not lost when the writer is held.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#HLDWTR.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="HLDWTR.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="#HLDWTR.WTR"><b>WTR</b></a></td>
<td valign="top">Writer</td>
<td valign="top"><i>Name</i></td>
<td valign="top">Required, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#HLDWTR.OPTION"><b>OPTION</b></a></td>
<td valign="top">When to hold writer</td>
<td valign="top"><b><u>*IMMED</u></b>, *CNTRLD, *PAGEEND</td>
<td valign="top">Optional, Positional 2</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#HLDWTR.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="HLDWTR.WTR"></a>
<h3>Writer (WTR)</h3>
<p>Specifies the spooling writer being held.
</p>
<p>This is a required parameter.
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the writer to be held.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#HLDWTR.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="HLDWTR.OPTION"></a>
<h3>When to hold writer (OPTION)</h3>
<p>Specifies when the spooling writer should stop producing output.
</p>
<dl>
<dt><b><u>*IMMED</u></b></dt>
<dd>The writer stops immediately after it has written the last record, in the current block of records, to the output device. Each time the writer finishes producing a block of records on a device, it makes another I/O request to get the next block from the file being spooled to the device. If *IMMED is specified, the writer stops only after it has written the last record in the block being processed, which (for diskette output) is a complete diskette record being written on diskette.
<p>When *IMMED is specified for printed output, the writer stops anywhere within or at the end of a print line or at the end of a complete block, which may not be at the end of a line. This is because some data records (which are blocked to improve performance) may be split in two, with the first part of a record at the end of one block and the last part of the record at the beginning of the next block. If only one copy of the file is being produced or if the last copy is being produced, the entry for the file is removed from the output queue when the output is completed.
</p>
</dd>
<dt><b>*CNTRLD</b></dt>
<dd>The writer stops at the end of the current copy of the file. If only one copy of the file is to be produced or if the last copy is being produced, the entry for the file is removed from the output queue when the output is completed.
</dd>
<dt><b>*PAGEEND</b></dt>
<dd>The writer is held at the end of a page. This value is valid only when the spooling writer is a printer writer.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#HLDWTR.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="HLDWTR.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
HLDWTR WTR(PRINTER) OPTION(*CNTRLD)
</pre>
</p>
<p>This command stops the writer named PRINTER at the end of the current file. The writer is held until an RLSWTR (Release Writer) or ENDWTR (End Writer) command is issued.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#HLDWTR.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="HLDWTR.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF1340</b></dt>
<dd>Job control function not performed.
</dd>
<dt><b>CPF3313</b></dt>
<dd>Writer &amp;1 not active nor on job queue.
</dd>
<dt><b>CPF3330</b></dt>
<dd>Necessary resource not available.
</dd>
<dt><b>CPF3331</b></dt>
<dd>Not authorized to control writer &amp;3/&amp;2/&amp;1.
</dd>
<dt><b>CPF3332</b></dt>
<dd>Writer &amp;3/&amp;2/&amp;1 already held.
</dd>
<dt><b>CPF3334</b></dt>
<dd>Previous hold to writer &amp;3/&amp;2/&amp;1 pending.
</dd>
<dt><b>CPF3438</b></dt>
<dd>*PAGEEND not valid for writer &amp;3/&amp;2/&amp;1.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#HLDWTR.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>