ibm-information-center/dist/eclipse/plugins/i5OS.ic.dbp_5.4.0.1/rbafochglfda.htm

63 lines
4.3 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="concept" />
<meta name="DC.Title" content="Change a logical file description and attributes" />
<meta name="abstract" content="As a general rule, when you make changes to a logical file, which causes a change to the level identifier (for example, adding a new field, deleting a field, or changing the length of a field), it is strongly recommended that you recompile the program that uses the logical file." />
<meta name="description" content="As a general rule, when you make changes to a logical file, which causes a change to the level identifier (for example, adding a new field, deleting a field, or changing the length of a field), it is strongly recommended that you recompile the program that uses the logical file." />
<meta name="DC.subject" content="logical file, changing, descriptions, attributes" />
<meta name="keywords" content="logical file, changing, descriptions, attributes" />
<meta name="DC.Relation" scheme="URI" content="rbafochgfile.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/chglf.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/crtlf.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="rbafochglfda" />
<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>Change a logical file description and attributes</title>
</head>
<body id="rbafochglfda"><a name="rbafochglfda"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Change a logical file description and attributes</h1>
<div><p>As a general rule, when you make changes to a logical file, which
causes a change to the level identifier (for example, adding a new field,
deleting a field, or changing the length of a field), it is strongly recommended
that you recompile the program that uses the logical file.</p>
<p>Sometimes you can make changes to a logical file, which changes the level
identifier and does not require you to recompile your program
(for example, adding a field that will not be used by your program to the
end of the file). However, in those situations you are forced to turn off
level checking to run your program that uses the changed file. That is not
the preferred method of operating. It increases the chances of incorrect data
in the future.</p>
<p>To avoid recompiling, you can keep the current logical file (unchanged)
and create a new logical file with the added field. Your program refers to
the old file, which still exists.</p>
<p>You can use the Change Logical File (CHGLF) command to change most of the
attributes of a logical file and its members that were specified on the Create
Logical File (CRTLF) command.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafochgfile.htm" title="These topics discuss how to change the database file descriptions and attributes. Considerations for changing fields in a file description are also included.">Change database file descriptions and attributes</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="../cl/chglf.htm">Change Logical File (CHGLF) command</a></div>
<div><a href="../cl/crtlf.htm">Create Logical File (CRTLF) command</a></div>
</div>
</div>
</body>
</html>