ibm-information-center/dist/eclipse/plugins/i5OS.ic.dm_5.4.0.1/rbal3ovrnf.htm

66 lines
4.5 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="copyright" content="(C) Copyright IBM Corporation 2005" />
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
<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="concept" />
<meta name="DC.Title" content="Override file names and file attributes" />
<meta name="abstract" content="This form of overriding files is a combination of overriding file attributes and overriding file names. 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." />
<meta name="description" content="This form of overriding files is a combination of overriding file attributes and overriding file names. 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." />
<meta name="DC.subject" content="overriding file, different names or types and attributes of new file, example, overriding, file names or types and attributes of new file" />
<meta name="keywords" content="overriding file, different names or types and attributes of new file, example, overriding, file names or types and attributes of new file" />
<meta name="DC.Relation" scheme="URI" content="rbal3applyovr.htm" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal3ovrnf" />
<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>Override file names and file attributes</title>
</head>
<body id="rbal3ovrnf"><a name="rbal3ovrnf"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Override file names and file attributes</h1>
<div><p>This form of overriding files is a combination of overriding file
attributes and overriding file names. 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.</p>
<div class="p">For example, you want the output from your application program
to print using the printer file REPORTS instead of the printer file OUTPUT
(the application program specifies the OUTPUT printer file). In addition
to having the application program use the printer file REPORTS, you want to
produce three copies. Assume that the following command created the file
REPORTS: <pre>CRTPRTF FILE(REPORTS) SPOOL(*YES) +
PAGESIZE(68 132) LPI(8) OVRFLW(60) +
COPIES(2) FILESEP(1)</pre>
</div>
<div class="p">Before you run the program, type the following command: <pre>OVRPRTF FILE(OUTPUT) TOFILE(REPORTS) COPIES(3)</pre>
</div>
<p>Then call the application program, and the program produces three copies
of the output using the printer file REPORTS.</p>
<p>Note that this is <em>not</em> equal to the following two override commands:</p>
<p>Override 1 <samp class="codeph">OVRPRTF FILE(OUTPUT) TOFILE(REPORTS)</samp><br />
Override 2 <samp class="codeph">OVRPRTF FILE(REPORTS) COPIES(3)</samp></p>
<p>Only one override is applied for each call level for an open of a particular
file; therefore, if you want to override the file that the program uses and
also override the attributes of the overriding file from one call level, you
must use a single command. If you use two overrides, the first override uses
the printer file REPORTS to print the output. The server ignores the second
override.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3applyovr.htm" title="You can perform two general types of overrides, which are file overrides and overrides for program device entries.">Apply overrides</a></div>
</div>
</div>
</body>
</html>