77 lines
5.4 KiB
HTML
77 lines
5.4 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 database files in a CL procedure or program" />
|
|
<meta name="abstract" content="You can use the Override with Database File (OVRDBF) command to replace the database file named in a CL procedure or program or to change certain parameters of the existing database file. This may be especially useful for files that have been renamed or moved since the procedure or program was created. It can also be used to access a file member other than the first member." />
|
|
<meta name="description" content="You can use the Override with Database File (OVRDBF) command to replace the database file named in a CL procedure or program or to change certain parameters of the existing database file. This may be especially useful for files that have been renamed or moved since the procedure or program was created. It can also be used to access a file member other than the first member." />
|
|
<meta name="DC.subject" content="CL procedure, overriding database file, file, database file" />
|
|
<meta name="keywords" content="CL procedure, overriding database file, file, database file" />
|
|
<meta name="DC.Relation" scheme="URI" content="wfile.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../cl/ovrdbf.htm" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="ovrbf" />
|
|
<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 database files in a CL procedure or program</title>
|
|
</head>
|
|
<body id="ovrbf"><a name="ovrbf"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Override database files in a CL procedure or program</h1>
|
|
<div><p>You can use the <span class="cmdname">Override with Database File (OVRDBF)</span> command
|
|
to replace the database file named in a CL procedure or program or to change
|
|
certain parameters of the existing database file. This may be especially useful
|
|
for files that have been renamed or moved since the procedure or program was
|
|
created. It can also be used to access a file member other than the first
|
|
member.</p>
|
|
<div class="section"> <p>The initial parameters of the OVRDBF command are: </p>
|
|
<pre>OVRDBF FILE(overridden-file-name) TOFILE(new-file-name)
|
|
MBR(member-name)</pre>
|
|
<p>The <span class="cmdname">Override with Database File (OVRDBF)</span> command
|
|
is valid for a file referred to by a CL procedure or program only if the file
|
|
specified in the <span class="cmdname">Declare File (DCLF)</span> command was a database
|
|
file when the module or program was created. The file used when the program
|
|
was processed must be of the same type as the file referred to when the module
|
|
or program was created.</p>
|
|
<p>The <span class="cmdname">Override with Database File (OVRDBF)</span> command
|
|
must be processed before the file to be overridden is opened for use (an open
|
|
occurs by the first use of the <span class="cmdname">Receive File (RCVF)</span> command).
|
|
The file is overridden if it is opened in the procedure or OPM program containing
|
|
the <span class="cmdname">Override with Database File (OVRDBF)</span> command, or if
|
|
it is opened in another program to which control is transferred by the CALL
|
|
command, or if it is opened in another procedure to which control
|
|
is transferred using the CALLPRC command.</p>
|
|
<p>When you override to a different
|
|
file, the overriding file must have only one record format. A logical file
|
|
which has multiple record formats defined in DDS may be used if it is defined
|
|
over only one physical file member. A logical file which has only one record
|
|
format defined in the DDS may be defined over more than one physical file
|
|
member. The name of the format does not have to be the same as the format
|
|
name referred to when the program was created. You should ensure that the
|
|
format of the data in the overriding file is the same as in the original file.
|
|
You may get unexpected results if you specify LVLCHK(*NO).</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="wfile.htm" title="Two types of files are supported in CL procedures and programs: display files and database files.">Work with files in CL procedures</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../cl/ovrdbf.htm">Override with Database File (OVRDBF) command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |