65 lines
3.9 KiB
HTML
65 lines
3.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 names in high-level language programs" />
|
|
<meta name="abstract" content="This topic contains information about overriding a file." />
|
|
<meta name="description" content="This topic contains information about overriding a file." />
|
|
<meta name="DC.Relation" scheme="URI" content="overide.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="fredr.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../dm/rbal3kickoff.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="ovfnam" />
|
|
<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 in high-level language programs</title>
|
|
</head>
|
|
<body id="ovfnam"><a name="ovfnam"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Override file names in high-level language programs</h1>
|
|
<div><p><span>This topic contains information about
|
|
overriding a file.</span></p>
|
|
<div class="section"> <div class="p">Another form of overriding a file is to change the file that is used by the program.
|
|
This can be useful for moved or renamed files after you compile the program.
|
|
For example, you want to send the output from your application program to
|
|
tape file TAPE20 instead of the tape file OUTPUT1 (The application program
|
|
specifies OUTPUT1). Before you run the program, enter the following code:
|
|
<pre>OVRTAPF FILE(OUTPUT1) TOFILE(TAPE20)
|
|
LABEL(FILE01) OPNSCOPE(*JOB)</pre>
|
|
</div>
|
|
<p>You must create the file TAPE20
|
|
by a CRTTAPF command before you use it.</p>
|
|
<div class="p"><a href="#ovfnam__rbahh527.eps">Figure 1</a> explains
|
|
this example. <div class="fignone" id="ovfnam__rbahh527.eps"><a name="ovfnam__rbahh527.eps"><!-- --></a><span class="figcap">Figure 1. Override a file name</span><br /><img src="rbahh527.gif" alt="The information above describes
this diagram." /><br /></div>
|
|
You might want to override a file with a file that has a different
|
|
file type. For example, you might want to override a diskette
|
|
file with a display file. To determine if you can override your file with
|
|
a file that has a different type, see the information under File redirection.</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 class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="fredr.htm" title="Learn what file redirection is and how it can be used.">File redirection</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../dm/rbal3kickoff.htm">File management</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |