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

81 lines
5.9 KiB
HTML
Raw Permalink 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 attributes" />
<meta name="abstract" content="Overriding file attributes is the simplest form of overriding a file." />
<meta name="description" content="Overriding file attributes is the simplest form of overriding a file." />
<meta name="DC.subject" content="overriding file, attribute, overriding, overriding file, device, applying, example, attributes of printer file, printer file used in program, building, using high-level language programs, applying override, when using high-level language application programs, using override commands, command, CL, OVRPRTF (Override with Printer File), basic example, merging, merging attributes, override, file, open data path (ODP), Override with Printer File (OVRPRTF), open data path (ODP), overrides, ODP (open data path), Override with Printer File (OVRPRTF) command, OVRPRTF (Override with Printer File) command" />
<meta name="keywords" content="overriding file, attribute, overriding, overriding file, device, applying, example, attributes of printer file, printer file used in program, building, using high-level language programs, applying override, when using high-level language application programs, using override commands, command, CL, OVRPRTF (Override with Printer File), basic example, merging, merging attributes, override, file, open data path (ODP), Override with Printer File (OVRPRTF), open data path (ODP), overrides, ODP (open data path), Override with Printer File (OVRPRTF) command, OVRPRTF (Override with Printer File) command" />
<meta name="DC.Relation" scheme="URI" content="rbal3applyovr.htm" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal3ovrfa" />
<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 attributes</title>
</head>
<body id="rbal3ovrfa"><a name="rbal3ovrfa"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Override file attributes</h1>
<div><p>Overriding file attributes is the simplest form of overriding a
file. </p>
<div class="p">File attributes are built as a result of the following actions: <ul><li>Create file and add member commands. Initially, these commands build the
file attributes.</li>
<li>Program using the files. At compile time, the user program can specify
some of the file attributes. (The attributes that you can specify depend on
the high-level language in which the program is written.)</li>
<li>Override commands. At the time when a program runs, these commands can
override the file attributes previously built by the merging of the file description
and the file parameters specified in the user program.</li>
</ul>
For example, assume that you create a printer file OUTPUT whose attributes
are: <ul><li>Page size of 60 by 80</li>
<li>Six lines per inch</li>
<li>Two copies of printed output</li>
<li>Two pages for file separators</li>
<li>Overflow line number of 55</li>
</ul>
The <a href="../cl/crtprtf.htm">Create
Printer File (CRTPRTF)</a> command looks like this: <pre>CRTPRTF FILE(QGPL/OUTPUT) SPOOL(*YES) +
PAGESIZE(60 80) LPI(6) COPIES(2) +
FILESEP(2) OVRFLW(55)</pre>
</div>
<p>You specify the printer file OUTPUT in your application program with an
overflow line number of 58 and a page size of 66 by 132.</p>
<div class="p">However, before you run the application program, you want to change the
number of printed copies to 3, and the overflow line to 60. The override command
looks like this: <pre>OVRPRTF FILE(OUTPUT) COPIES(3) OVRFLW(60)</pre>
Then
you call the application program, and three copies of the output print.</div>
<p>When the application program opens the OUTPUT file, the server merges the
file-specified attributes, program-specified attributes, and override-specified
attributes to form the open data path. The server uses the open data path
when the program runs. The server merges file-specified overrides with the
program-specified attributes first. Then it merges these merged attributes
with the override attributes. In this example, when the OUTPUT 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><a href="#rbal3ovrfa__rv2h087">Figure 1</a> explains this example.</p>
<div class="fignone" id="rbal3ovrfa__rv2h087"><a name="rbal3ovrfa__rv2h087"><!-- --></a><span class="figcap">Figure 1. Override file attributes</span><br /><img src="rv2h087.gif" alt="Overriding file attributes" /><br /></div>
</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>