112 lines
7.0 KiB
HTML
112 lines
7.0 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="dc.language" scheme="rfc1766" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow"/>
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<title>Printer file overview</title>
|
|
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
|
|
<link rel="stylesheet" type="text/css" href="ic.css" />
|
|
</head>
|
|
<body>
|
|
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
|
|
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
|
|
|
|
|
|
<a name="rzaluprtfover"></a>
|
|
<h4 id="rzaluprtfover">Printer file overview</h4>
|
|
<p>Printers attached to the iSeries™ server are supported by the operating
|
|
system through printer files. Printer files describe how the system is to
|
|
operate on the data as it passes between your application program and a printer.</p>
|
|
<p>A printer file handles every request for printing. There is one exception
|
|
to this. It applies only to the Print key when the display station has an
|
|
attached remote workstation controller. In this situation, the printer that
|
|
is named in the device description for that display station receives the printed
|
|
version of the screen. The remote workstation controller, not the iSeries server, handles
|
|
this.</p>
|
|
<p>Printer files contain many parameters that tell the system how the output
|
|
should be formatted, what font to use for the printed output, whether to print
|
|
on both sides of the page, and more. For example, the parameters that control
|
|
how your output is handled and where it goes are:</p>
|
|
<ul>
|
|
<li>Spool the data (SPOOL)
|
|
<br />*YES is the default value
|
|
for the SPOOL parameter.
|
|
<p>When the SPOOL parameter is set to *YES, the
|
|
output from an application program (a spooled file) is sent to an output queue
|
|
(OUTQ). When SPOOL = *YES, the system looks at the OUTQ parameter in the printer
|
|
file to find out which output queue (OUTQ) to send the spooled file to. For
|
|
example, the OUTQ value in your printer file could be OUTQ1. However, in the
|
|
default printer file, QSYSPRT, the value specified is *JOB. This means that
|
|
the QSYSPRT printer file tells the system to look at your job's OUTQ attribute
|
|
to determine the name of the output queue (OUTQ).</p>
|
|
<p>When the SPOOL parameter
|
|
is set to *NO, the output from an application program is sent directly to
|
|
a printer. When SPOOL = *NO, the system looks at the DEV parameter in the
|
|
printer file to find out which printer to send the output to. For example,
|
|
the DEV value in your printer file could be PRT01. However, in the default
|
|
printer file, QSYSPRT, the value specified is *JOB. This means that the QSYSPRT
|
|
printer file tells the system to look at your PRTDEV job's attribute to determine
|
|
the name of the printer device (DEV).</p></li>
|
|
<li>Device (DEV)
|
|
<br />The device parameter indicates the
|
|
name of a printer device description. If SPOOL = *NO is specified, the device
|
|
parameter identifies the printer device used to produce the printed output.
|
|
If SPOOL = *YES is specified, the device (DEV) parameter is ignored unless
|
|
*DEV is specified for the output queue parameter. In that case, the default
|
|
output queue for the specified printer is used for the spooled files.</li>
|
|
<li>Spooled output queue (OUTQ)
|
|
<br />The output queue parameter
|
|
indicates which output queue your spooled files are sent to. If you have a
|
|
program that creates large print jobs you might consider sending them to an
|
|
output queue that will hold those spooled files until most of your printer
|
|
work for the day is done. Doing this can help users who have lots of small
|
|
jobs get their jobs printed in a reasonable amount of time.</li>
|
|
<li>Spooled File Owner (SPLFOWN)
|
|
<br />The SPLFOWN parameter
|
|
specifies which user profile owns a file. The spooled file can be owned by
|
|
the current job, a QPRTJOB for the current user, a group profile for the current
|
|
user, or the group profile of the current job's user. For example, for server
|
|
job debugging purposes, you might want the current job to own all service
|
|
dumps, instead of the current user. To accomplish this, you could set the
|
|
parameter to the special value of *JOB for the QPSRVDMP printer file.</li></ul>
|
|
<p>There are two different types of printer files:</p>
|
|
<ul>
|
|
<li><span class="bold">Program-described printer files</span> rely on the high-level
|
|
language program to define records and fields to be printed. For more information,
|
|
see <a href="rzaluprogramexmp.htm#rzaluprogramexmp">Example: Using a program-described printer file with an application
|
|
program</a>.</li>
|
|
<li><span class="bold">Externally described printer files</span> use data description
|
|
specifications (DDS) rather than the high-level language to define records
|
|
and fields to be printed. DDS gives the application programmer much more format
|
|
and print control over the printed output. For more information about DDS
|
|
keywords, see <a href="../rzakd/kickoff.htm">DDS Reference: Printer files</a> in
|
|
the Programming topic. For more information about using externally described
|
|
printer files, see <a href="rzaluexternalexmp.htm#rzaluexternalexmp">Example: Using an externally described printer file with an application
|
|
program</a>.</li></ul>
|
|
<p>You can create your own printer files by using the <a href="../cl/crtprtf.htm">Create Printer File (CRTPRTF)</a>, or you can use system-provided printer
|
|
files. See <a href="rzaluprtfparmsc.htm#rzaluprtfparmsc">Printer file parameter considerations</a> for more detailed information on
|
|
certain printer file parameters.</p>
|
|
<p>The following list contains the IBM-supplied printer files:</p>
|
|
<ul>
|
|
<li>QSYSPRT: A program-described printer file in library QSYS.</li>
|
|
<li>QPRINT: Default spooled output printer file for normal print.</li>
|
|
<li>QPRINTS: Default spooled output printer file for special forms.</li>
|
|
<li>QPRINT2: Default spooled output printer file for two copies of output.</li>
|
|
<li>QPSPLPRT: Default spooled output printer file for the spooling subsystem.</li></ul>
|
|
<p>If another printer file is not specified, the printer uses the default
|
|
printer file. The default printer file for the system is QSYSPRT.</p>
|
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
|
</body>
|
|
</html>
|