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

67 lines
4.4 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="Record format description" />
<meta name="abstract" content="When you describe a database file to the system, you describe the two major parts of the file: the record format and the access path. The record format describes the order of the fields in each record." />
<meta name="description" content="When you describe a database file to the system, you describe the two major parts of the file: the record format and the access path. The record format describes the order of the fields in each record." />
<meta name="DC.subject" content="describing, record format, example" />
<meta name="keywords" content="describing, record format, example" />
<meta name="DC.Relation" scheme="URI" content="rbafodeffi.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="rbaforecft" />
<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>Record format description</title>
</head>
<body id="rbaforecft"><a name="rbaforecft"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Record format description</h1>
<div><p>When you describe a database file to the system, you describe the
two major parts of the file: the record format and the access path. The record
format describes the order of the fields in each record. </p>
<p>The record format also describes each field in detail, including: length,
data type (for example, packed decimal or character), validity checks, text
description, and other information.</p>
<p>The following example shows the relationship between the record format
and the records in a physical file:</p>
<br /><img src="rbafo501.gif" alt="Specifications for record format" /><br /><p>In this example of specifications for record format ITMMST, there are three
fields. Field <em>ITEM</em> is zoned decimal, five digits, with no decimal position.
Field <em>DESCRP</em> is character, with 18 positions. Field <em>PRICE</em> is
zoned decimal, five digits, with two decimal positions.</p>
<p>A physical file can have only one record format. The record format in a
physical file describes the way the data is actually stored.</p>
<p>A logical file contains no data. Logical files are used to arrange data
from one or more physical files into different formats and sequences. For
example, a logical file can change the order of the fields in the physical
file, or present to the program only some of the fields stored in the physical
file.</p>
<p>A logical file record format can change the length and data type of fields
stored in physical files. The system does the necessary conversion between
the physical file field description and the logical file field description.
For example, a physical file can describe a field <em>FLDA</em> as a packed
decimal field of five digits and a logical file using <em>FLDA</em> might redefine
it as a zoned decimal field of seven digits. In this case, when
your program uses the logical file to read a record, the system automatically
converts (unpack) <em>FLDA</em> to zoned decimal format.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafodeffi.htm" title="This topic discusses the ways to describe records in database files.">How database files are described</a></div>
</div>
</div>
</body>
</html>