91 lines
4.9 KiB
HTML
91 lines
4.9 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 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="task" />
|
|
<meta name="DC.Title" content="Override file attributes" />
|
|
<meta name="abstract" content="Find out why file attributes are built. You can also see a override file attribute example." />
|
|
<meta name="description" content="Find out why file attributes are built. You can also see a override file attribute example." />
|
|
<meta name="DC.Relation" scheme="URI" content="overide.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="ovfatt" />
|
|
<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="ovfatt"><a name="ovfatt"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Override file attributes</h1>
|
|
<div><p>Find out why file attributes are built. You can also see a override
|
|
file attribute example.</p>
|
|
<div class="section"> <p>File attributes are built as
|
|
a result of the following:</p>
|
|
<ul><li>Create file command. Initially, this command builds the file attributes.</li>
|
|
<li>Program
|
|
using the files. At compile time, the user program can specify some of the
|
|
file attributes. The high-level language used by the program determines the
|
|
attributes that can be used.</li>
|
|
<li>Override commands. At program run time, 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>
|
|
<p>The simplest form of overriding a file is to override some attribute
|
|
of the file.</p>
|
|
<p>For example, assume that you create a tape file OUTPUT
|
|
whose attributes are:</p>
|
|
<ul><li>Use Device TAP01.</li>
|
|
<li>Write the Data on the tape with a density of 1600 bits per inch (bpi)</li>
|
|
<li>Use the ASCII character code type.</li>
|
|
<li>When you close the tape file, the program rewinds and unloads the tape.</li>
|
|
</ul>
|
|
<div class="p"> The Create Tape File (CRTTAPF) command looks like this: <pre>CRTTAPF FILE(QGPL/OUTPUT) DEV(TAP01)
|
|
DENSITY(1600) CODE(*ASCII) ENDOPT(*UNLOAD)</pre>
|
|
</div>
|
|
<div class="p">Your
|
|
application program has the tape file OUTPUT specified with a character code
|
|
type of EBCDIC and a density of 3200. However, before you run the application
|
|
program, you want to change the density to 6250 bpi and the end option to
|
|
*REWIND. The override command looks like this: <pre>OVRTAPF FILE(OUTPUT) DENSITY(6250)
|
|
ENDOPT(*REWIND)</pre>
|
|
</div>
|
|
<p>When you call the application program,
|
|
the system uses a tape density of 6250 bpi and the end option is *REWIND.</p>
|
|
<p>When
|
|
the application program opens the file, the system merges these
|
|
to form the open data path (ODP):</p>
|
|
<ul><li>The file overrides.</li>
|
|
<li>The program-specified attributes.</li>
|
|
<li>The file attributes.</li>
|
|
</ul>
|
|
<p>The program uses the open data path (ODP) during
|
|
the running of the program. File overrides have precedence overprogram-specified
|
|
attributes. Program-specified attributes have precedence over file-specified
|
|
attributes. In <a href="#ovfatt__rbahh524.eps">Figure 1</a>, when you open the
|
|
file and you perform output operations, the program writes:</p>
|
|
<ul><li>To the device TAP01 with a density of 6250 bpi.</li>
|
|
<li>In a character code type of EBCDIC.</li>
|
|
<li>An end option of *REWIND.</li>
|
|
</ul>
|
|
<p><a href="#ovfatt__rbahh524.eps">Figure 1</a> explains this example.</p>
|
|
<div class="fignone" id="ovfatt__rbahh524.eps"><a name="ovfatt__rbahh524.eps"><!-- --></a><span class="figcap">Figure 1. Override file attributes</span><br /><img src="rbahh524.gif" alt="This diagram is explained
in the example mentioned above." /><br /></div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="overide.htm" title="Learn what can be done with an override and how to manage the overrides that currently exist.">Use overrides</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |