79 lines
6.0 KiB
HTML
79 lines
6.0 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="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="Overrides to the same file at the same call level: scenario" />
|
||
<meta name="abstract" content="When you enter two overrides for the same file name at the same call level, the second override replaces the first override. This allows you to replace an override at a single call level, without having to delete the first override." />
|
||
<meta name="description" content="When you enter two overrides for the same file name at the same call level, the second override replaces the first override. This allows you to replace an override at a single call level, without having to delete the first override." />
|
||
<meta name="DC.subject" content="call level, number used for file, example, two overrides for same file, Override with Database File (OVRDBF) command, with name change, OVRDBF (Override with Database File) command, with name change, command, CL, Override with Database File (OVRDBF), OVRDBF (Override with Database File)" />
|
||
<meta name="keywords" content="call level, number used for file, example, two overrides for same file, Override with Database File (OVRDBF) command, with name change, OVRDBF (Override with Database File) command, with name change, command, CL, Override with Database File (OVRDBF), OVRDBF (Override with Database File)" />
|
||
<meta name="DC.Relation" scheme="URI" content="rbal3applyovr.htm" />
|
||
<meta name="DC.Relation" scheme="URI" content="rbal3deover.htm" />
|
||
<meta name="DC.Format" content="XHTML" />
|
||
<meta name="DC.Identifier" content="rbal3ovrsf2" />
|
||
<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>Overrides to the same file at the same call level: scenario</title>
|
||
</head>
|
||
<body id="rbal3ovrsf2"><a name="rbal3ovrsf2"><!-- --></a>
|
||
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
<h1 class="topictitle1">Overrides to the same file at the same call level: scenario</h1>
|
||
<div><p>When you enter two overrides for the same file name at the same
|
||
call level, the second override replaces the first override. This allows you
|
||
to replace an override at a single call level, without having to delete the
|
||
first override.</p>
|
||
<p>In the following example, when the program attempts to open FILE A, FILE
|
||
B overrides FILE A because of override 2. Because only one override can be
|
||
applied for each call level, the server ignores override 1, and the file opened
|
||
by the program is FILE B.</p>
|
||
<div class="note"><span class="notetitle">Note:</span> By using the code example, you agree to the terms of the <a href="codedisclaimer.htm">Code license and disclaimer information</a>.</div>
|
||
<div class="fignone"><span class="figcap">Figure 1. An example of the server response to the open file command using
|
||
overrides</span>. <span class="figdesc">Only one override can be applied for each call level.
|
||
The following example outlines how the server ignores the first override and
|
||
performs the second override.</span><p> Program A<br />
|
||
.<br />
|
||
.<br />
|
||
.<br />
|
||
Override 1 <samp class="codeph">OVRDBF FILE(B) TOFILE(C)</samp><br />
|
||
Override 2 <samp class="codeph">OVRDBF FILE(A) TOFILE(B)</samp><br />
|
||
.<br />
|
||
.<br />
|
||
.<br />
|
||
<samp class="codeph">OPEN FILE A</samp><br />
|
||
.<br />
|
||
.<br />
|
||
.<br />
|
||
<br />
|
||
</p>
|
||
</div>
|
||
<div class="p">To open FILE C, replace the two <a href="../cl/ovrdbf.htm">Override with Database File (OVRDBF)</a> commands with the
|
||
following command: <pre>OVRDBF FILE(A) TOFILE(C)</pre>
|
||
</div>
|
||
<p>This does not prevent applying an override at the same call level or job
|
||
level in which the file is created. Regardless of which attribute is encountered
|
||
first, file attributes on the override take the place of corresponding attributes
|
||
on the create statement for the file.</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 class="relconcepts"><strong>Related concepts</strong><br />
|
||
<div><a href="rbal3deover.htm" title="When a program that has been called returns control to the calling program, the server deletes any overrides specified in the call level of the called program.">Delete overrides</a></div>
|
||
</div>
|
||
</div>
|
||
</body>
|
||
</html> |