80 lines
4.8 KiB
HTML
80 lines
4.8 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="reference" />
|
||
|
<meta name="DC.Title" content="Example 2: Change a physical file description and attributes" />
|
||
|
<meta name="abstract" content="This example shows how to create new versions of files in the same library." />
|
||
|
<meta name="description" content="This example shows how to create new versions of files in the same library." />
|
||
|
<meta name="DC.subject" content="example, changing, descriptions of physical files, attributes of physical files" />
|
||
|
<meta name="keywords" content="example, changing, descriptions of physical files, attributes of physical files" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafochgpfda.htm" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="../rbam6/rbam6clmain.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="rbafochgpfdaex2" />
|
||
|
<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>Example 2: Change a physical file description and attributes</title>
|
||
|
</head>
|
||
|
<body id="rbafochgpfdaex2"><a name="rbafochgpfdaex2"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Example 2: Change a physical file description and attributes</h1>
|
||
|
<div><p>This example shows how to create new versions of files in the same
|
||
|
library.</p>
|
||
|
<div class="section"> <p>To create new versions of files in the same library, follow these
|
||
|
steps:</p>
|
||
|
<ol><li>Create a new physical file with a different record format in the same
|
||
|
library the old physical file is in. The names of the old and new files should
|
||
|
be different. (The old physical file FILEPFA is in library LIBA and has two
|
||
|
members MBRA1 and MBRA2.) <pre>CRTPF FILE(LIBA/FILEPFB) MAXMBRS(2)...</pre>
|
||
|
</li>
|
||
|
<li>Copy the members of the old physical file to the new physical file. <pre>CPYF FROMFILE(LIBA/FILEPFA) TOFILE(LIBA/FILEPFB)
|
||
|
FROMMBR(*ALL) TOMBR(*FROMMBR)
|
||
|
FMTOPT(*MAP *DROP) MBROPT(*REPLACE)</pre>
|
||
|
</li>
|
||
|
<li>Create a new logical file in the same library as the old logical file
|
||
|
is in. The names of the old and new files should be different. (You can use
|
||
|
the FORMAT keyword to use the same record formats as are in the current logical
|
||
|
file if no changes need be made to the record formats.) The PFILE keyword
|
||
|
must refer to the new physical file created in step 1. The old logical file
|
||
|
FILELFA is in library LIBA. <pre>CRTLF FILE(LIBA/FILELFB)</pre>
|
||
|
</li>
|
||
|
<li>Delete the old logical and physical files. <pre>DLTF FILE(LIBA/FILELFA)
|
||
|
DLTF FILE(LIBA/FILEPFA)</pre>
|
||
|
</li>
|
||
|
<li>Rename the new logical file to the name of the old logical file. (If you
|
||
|
also decide to rename the physical file, be sure to change the DDS for logical
|
||
|
file so that the PFILE keyword refers to the new physical file name.) <pre>RNMOBJ(LIBA/FILELFB) OBJTYPE(*FILE) NEWOBJ(FILELFA)</pre>
|
||
|
</li>
|
||
|
<li>If the logical file member should be renamed, and assume that the
|
||
|
default was used on the Create Logical File (CRTLF) command, issue the following
|
||
|
command:<pre>RNMM FILE(LIBA/FILELFA) MBR(FILELFB) NEWMBR(FILELFA)</pre>
|
||
|
</li>
|
||
|
</ol>
|
||
|
</div>
|
||
|
<div class="section"><p>You can use the Change Physical File (CHGPF) command to change
|
||
|
some of the attributes of a physical file and its members. </p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafochgpfda.htm" title="Sometimes when you make a change to a physical file description and then re-create the file, the level identifier can change. If the level identifier changes, you can either compile the program again or avoid recompiling using a logical file.">Change a physical file description and attributes</a></div>
|
||
|
</div>
|
||
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
||
|
<div><a href="../rbam6/rbam6clmain.htm">Control language (CL)</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|