65 lines
3.5 KiB
HTML
65 lines
3.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>Override file names or types and file attributes of the new file</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="rzaluovrprtffnftfa"></a>
|
|
<h5 id="rzaluovrprtffnftfa">Override file names or types and file attributes of the new file</h5>
|
|
<p>This form of overriding files is a combination of overriding file attributes
|
|
and overriding file names or types. With this form of override, you can override
|
|
the file that is to be used in a program and you can also override the attributes
|
|
of the overriding file. For example, you want the output from your application
|
|
program to be printed using printer file REPORTS instead of printer file OUTPUT
|
|
(OUTPUT is specified in the application program). In addition to having the
|
|
application program use printer file REPORTS, you want to override the number
|
|
of printed copies to three. Assume printer file REPORTS was created with the
|
|
following command:</p>
|
|
<p></p>
|
|
<pre class="xmp">CRTPRTF FILE(REPORTS) SPOOL(*YES)
|
|
PAGESIZE (68 132) LPI(8)
|
|
OVRFLW(60) COPIES(2) FILESEP(1)</pre>
|
|
<p>Before you run the program, type the following command:</p>
|
|
<p></p>
|
|
<pre class="xmp">OVRPRTF FILE(OUTPUT) TOFILE(REPORTS) COPIES(3)</pre>
|
|
<p>Then call the application program, and three copies of the output are printed
|
|
using the REPORTS printer file.</p>
|
|
<p>Note that this is <span class="underlined">not</span> equal to the following
|
|
two override commands:</p>
|
|
<dl>
|
|
<dt class="bold"><span class="bold">Override 1</span></dt>
|
|
<dd><tt>OVRPRTF FILE(OUTPUT) TOFILE(REPORTS)</tt>
|
|
</dd>
|
|
<dt class="bold"><span class="bold">Override 2</span></dt>
|
|
<dd><tt>OVRPRTF FILE(REPORTS) COPIES(3)</tt>
|
|
</dd>
|
|
</dl>
|
|
<p>Only one override is applied for each call level for an open of a particular
|
|
file, so if you want to override the file that is used by the program and
|
|
also override the attributes of the overriding file from one call level, you
|
|
must use a single command. If two overrides are used, the first override will
|
|
cause the output to be printed using the REPORTS printer file, but the second
|
|
override will be ignored.</p>
|
|
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
|
|
</body>
|
|
</html>
|