64 lines
3.4 KiB
HTML
64 lines
3.4 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>Override file attributes</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="rzaluovrprtfatt"></a>
|
|
<h5 id="rzaluovrprtfatt">Override file attributes</h5>
|
|
<p>The simplest form of overriding a file is to override some attributes of
|
|
the file. For example, assume that you create a printer file named OUTPUT
|
|
with these attributes:</p>
|
|
<ul>
|
|
<li>Page size: 66 by 132</li>
|
|
<li>Lines per inch: 6</li>
|
|
<li>Copies of printed output: 2</li>
|
|
<li>Pages for file separators: 2</li>
|
|
<li>Overflow line number: 55</li></ul>
|
|
<p>The Create Printer File (CRTPRTF) command used to create this file looks
|
|
like this:</p>
|
|
<p></p>
|
|
<pre class="xmp">CRTPRTF FILE(QGPL/OUTPUT) SPOOL(*YES)
|
|
PAGESIZE(66 132) LPI(6)
|
|
COPIES(2) FILESEP(2) OVRFLW(55)</pre>
|
|
<p>The printer file named OUTPUT is specified in your application program
|
|
with an overflow line number of 58. However, before you run the application
|
|
program, you want to change the number of copies of printed output to 3 and
|
|
the overflow line to 60. The override command looks like this:</p>
|
|
<p></p>
|
|
<pre class="xmp">OVRPRTF FILE(OUTPUT) COPIES(3) OVRFLW(60)</pre>
|
|
<p>When you call the application program, three copies of the output are printed.</p>
|
|
<p>When the application program opens the file, the file overrides, program-specified
|
|
attributes, and file attributes are merged to form the open data path (ODP),
|
|
which is used to manage the file during the running of the program. File overrides
|
|
have precedence over program-specified attributes. Program-specified attributes
|
|
have precedence over file-specified attributes. In this example, when the
|
|
file is opened and output operations are performed, spooled output will be
|
|
produced with a page size of 66 by 132, six lines per inch, three copies,
|
|
two file separator pages, and overflow at 60 lines.</p>
|
|
<p>The following chart explains this example: </p>
|
|
<div class="mmobj">
|
|
<img src="rv2h328.gif" alt="Illustration of the example above." /></div>
|
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
|
</body>
|
|
</html>
|