ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzalu_5.4.0.1/rzalumargin.htm

112 lines
6.5 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>Margin (FRONTMGN and BACKMGN) parameters</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="rzalumargin"></a>
<h4 id="rzalumargin">Margin (FRONTMGN and BACKMGN) parameters</h4>
<p>To use the margin parameters, the device type (DEVTYPE) parameter on the
printer file must be *AFPDS. For device types other than *AFPDS, the iSeries&trade; server calculates
the margins.</p>
<p>Margins define the starting point of printed output on a piece of paper.
The FRONTMGN parameter specifies the starting point on the front side of the
paper; the BACKMGN parameter specifies the starting point on the back side
of the paper.</p>
<p>There are two types of margins: front and back. Offset values, down and
across, are used to fix the position of the margin. Across is defined as left
to right. Down is defined as top to bottom.</p>
<p>Margins are measured in either inches or centimeters. The type of measurement
is specified in the unit-of-measure (UOM) parameter on the printer file.</p>
<p><span class="bold">Using *DEVD and 0 as margin parameter values</span></p>
<p>If you have existing application programs that specify how far across and
how far down to start printing, you should specify 0 (zero) or *DEVD for the
margin parameter offset values. </p>
<dl>
<dt class="bold">*DEVD</dt>
<dd>When *DEVD is specified, the no-print border (<span class="italic">no-print
border</span> is a small area around the whole page where data will not print)
is used to determine the starting printing point.
<p>For printers configured
as AFP(*NO), 0 is used to determine the starting point when *DEVD is specified.</p>
</dd>
<dt class="bold">0</dt>
<dd>When 0 is specified, the top left corner of the page is used to determine
the starting printing point.
</dd>
</dl>
<p>The following diagram shows a no-print border. The size of the no-print
border can vary from printer to printer.</p>
<a name="wq299"></a>
<div class="fignone" id="wq299">
<div class="mmobj">
<img src="rv2h341.gif" alt="A no-print border." /></div></div>
<p><span class="bold">Restrictions with the margin parameters</span></p>
<p>The margin parameters (both front and back) are ignored for spooled files
that have *COR specified as the value for the page rotation (PAGRTT) printer
file parameter. This is because *COR assumes a half-inch margin. In addition,
the margin parameters are ignored for spooled files that have a pages per
side (MULTIUP) value of 2, 3, or 4.</p>
<p><span class="bold">Using margin parameters and overlays</span></p>
<p>There are two ways to position your overlays </p>
<ul>
<li>Specify overlays with the front or back margin (FRONTMGN or BACKMGN) parameters
so that the overlays move with the text based on margin parameters.</li>
<li>Change value in data area QPRTVALS so that the overlays are not affected
by the front or back margin parameters.</li></ul>
<p><span class="bold">Positioning overlays based on margin parameters</span></p>
<p>Overlays specified with the back or front overlay printer file parameter
are affected by the front or back margin parameters. The following diagram
shows how your output would look if your front margin was defined as 2 units
down and 2 units across and the placement of your overlay was 4 units down
and 4 units across:</p>
<p></p>
<div class="mmobj">
<img src="rbaft516.gif" alt="How your output would look if your front margin was defined as 2 units down and 2 units across and the placement of your overlay was 4 units down and 4 units across" /></div>
<a name="wq300"></a>
<div class="notetitle" id="wq300">Note:</div>
<div class="notebody">If you use margins and overlays together, the offsets have
the same unit of measure (UOM) specified: inches (*INCH) <span class="underlined">or</span> centimeters (*CM), but not inches <span class="underlined">and</span> centimeters
together.</div>
<p><span class="bold">Positioning overlays independently</span></p>
<p>If you do not want the overlays moved by the values specified in the front
or back margin parameters, you can specify a <tt class="xph">Y</tt> (uppercase) in position
4 of the data area QPRTVALS. The following diagram shows you the two ways
to position the overlays:</p>
<div class="mmobj">
<img src="rbaft517.gif" alt="Two ways to position the overlays" /></div>
<p>To find out if data area QPRTVALS exists on your system, use the following
command: </p>
<pre class="xmp">DSPDTAARA DTAARA(QUSRSYS/QPRTVALS)</pre>
<p>If the data area QPRTVALS exists, but position 4 is not set to 'Y' (uppercase),
use the following command: </p>
<pre class="xmp">CHGDTAARA DTAARA (QUSRSYS/QPRTVALS (4 1)) VALUE ('Y')</pre>
<p>If you do not have data area QPRTVALS on your system, you can create one
by using the following commands: </p>
<ol type="1">
<li><tt class="xph">CRTDTAARA DTAARA(QUSRSYS/QPRTVALS) TYPE(*CHAR) LEN(256) VALUE(' Y')</tt></li>
<li><tt class="xph">CHGOBJOWN OBJ(QUSRSYS/QPRTVALS) OBJTYPE(*DTAARA) NEWOWN(QSYS) CUROWNAUT(*SAME)</tt></li>
<li><tt class="xph">CRTOBJAUT OBJ(QUSRSYS/QPRTVALS) OBJTYPE(*DTAARA) USER(*PUBLIC) AUT(*ALL)</tt></li></ol>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>