<?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 lang="en-us" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <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))' /> <meta name="DC.Type" content="reference" /> <meta name="DC.Title" content="LPI (Lines Per Inch) keyword in printer files" /> <meta name="abstract" content="Use this record-level keyword to change lines per inch within a file." /> <meta name="description" content="Use this record-level keyword to change lines per inch within a file." /> <meta name="DC.subject" content="LPI (Lines Per Inch) keyword, Lines Per Inch (LPI) keyword" /> <meta name="keywords" content="LPI (Lines Per Inch) keyword, Lines Per Inch (LPI) keyword" /> <meta name="DC.Relation" scheme="URI" content="rzakdmstprkey.htm" /> <meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" /> <meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" /> <meta name="DC.Format" content="XHTML" /> <meta name="DC.Identifier" content="rzakdmstptlpi" /> <meta name="DC.Language" 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. --> <link rel="stylesheet" type="text/css" href="./ibmdita.css" /> <link rel="stylesheet" type="text/css" href="./ic.css" /> <title>LPI (Lines Per Inch) keyword in printer files</title> </head> <body id="rzakdmstptlpi"><a name="rzakdmstptlpi"><!-- --></a> <!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">LPI (Lines Per Inch) keyword in printer files</h1> <div><p>Use this record-level keyword to change lines per inch within a file.</p> <div class="section"><p>If you do not specify LPI for a record, the LPI value is set from the LPI value on the CRTPRTF, CHGPRTF, or OVRPRTF command.</p> <div class="p">The format of the keyword is: <pre>LPI( 4 | 6 | 8 | 9 | 12)</pre> </div> <p>4, 6, 8, 9, and 12 are the valid parameter values.</p> <p>When you use multiple LPI per page, all skip-to line numbers (on SKIPB, SKIPA) become absolute positions (fixed locations on the paper). For example, if the page length is 66 lines and the file LPI value is 6, then the forms are 11.0 inches long. If you indicate that it should skip to line number 48, it skips down 8 inches on the page and prints. If, in this example, you print 24 lines at 6 LPI (4 inches) and then print 24 lines at 8 LPI (3 inches), the 48th line is 7 inches down on the page.</p> <p>In both of these examples, 48 lines are processed. If a SKIPB(55) keyword is used, the first example skips to line 55, based on 6 LPI (55/6 inch down the page). In the second example, a page eject occurs and printing starts on line 55, based on 8 LPI (55/8 inch down the page). A page eject occurs in the second example because 7 inches was printed down on the page. A skip to line 55, based on 8 LPI, is less than 7 inches. Therefore, to print on line 55, the current page must be ejected.</p> <p>Data is processed in a sequential fashion based on location, not on line number. If you use a skip-to to go to a line number that is a location above the current location (even though the line number is greater than the current line number), a page eject occurs. Printing continues on the next page.</p> <p>When using multiple LPI per page, all spacing (SPACEA and SPACEB) is done relative to the current position. For example, if you print 24 lines at 6 LPI (4 inches), and then print 24 lines at 8 LPI (3 inches), the 48th line is 7 inches down on the page. If you then do a SPACEA(4) (LPI is still 8 LPI), you will space down 1/2 inch from the last line and be a total of 7.5 inches down on the page. It is recommended that you use SPACEA and SPACEB keywords when you use the LPI keyword.</p> <div class="p">The LPI, SKIP, and SPACE keywords are processed in the following order: <p>LPI<br /> SKIPB<br /> SPACEB<br /> SPACEA<br /> SKIPA</p> </div> <p>Thus, the SPACE and SKIP keywords use the new LPI value. The LPI for the next and the following lines print at the LPI value specified on the LPI parameter. This parameter value remains in effect until the next record format processes. At the end of the record format, the LPI value changes back to the file level.</p> <p>The LPI takes effect only on a line boundary. If you change the LPI within a line, the new value takes effect at the end of the line and no diagnostic appears.</p> <p>You cannot specify this keyword on the same record format with BLKFOLD, CPI, or DFNCHR. If you use any of these keywords with LPI, the file is not created.</p> <p>This keyword is valid for IPDS™ printers and printers capable of Advanced Function Printing™ support. A warning message is issued when you specify the LPI keyword in a file created with DEVTYPE(*SCS).</p> <p>The overflow line number (OVRFLW parameter on the CRTPRTF command) is not converted to an absolute position (in inches) based on the file-level LPI value. The overflow condition signals when the overflow position (in inches) is reached.</p> <p>Example: Page length = 66, LPI = 6, OVRFLW = 60 (10 inches).</p> <ul><li>Print 36 lines at 6 LPI (6 inches).</li> <li>Print 16 lines at 4 LPI (4 inches).</li> </ul> <p>After line 52 processes, the overflow condition is signaled.</p> <p>Option indicators are not valid for this keyword.</p> </div> <div class="section"><h4 class="sectiontitle">Example</h4><p>The following example shows how to specify the LPI keyword.</p> <pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A R RECORD1 LPI(6) A SPACEB(6) A</pre> <p>Regardless of the LPI you specify on the CRTPRTF, CHGPRTF, or OVRPRTF command, the printer device spaces down one inch before it prints the next line.</p> </div> </div> <div> <div class="familylinks"> <div class="parentlink"><strong>Parent topic:</strong> <a href="rzakdmstprkey.htm" title="See the valid keyword entries for defining printer files in this topic.">Keyword entries for printer files (positions 45 through 80)</a></div> </div> </div> </body> </html>