ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakb_5.4.0.1/specrecs.htm

80 lines
5.1 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="concept" />
<meta name="DC.Title" content="Specify record formats in a logical file in DDS" />
<meta name="abstract" content="If there is more than one record format specified in a logical file, you must specify the PFILE keyword for each record format." />
<meta name="description" content="If there is more than one record format specified in a logical file, you must specify the PFILE keyword for each record format." />
<meta name="DC.Relation" scheme="URI" content="ldef.htm" />
<meta name="DC.Relation" scheme="URI" content="ldef.htm" />
<meta name="DC.Relation" scheme="URI" content="lleng.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2001, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="specrecs" />
<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>Specify record formats in a logical file in DDS</title>
</head>
<body id="specrecs"><a name="specrecs"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Specify record formats in a logical file in DDS</h1>
<div><p>If there is more than one record format specified in a logical
file, you must specify the PFILE keyword for each record format.</p>
<div class="p">There are three ways to specify the fields in a record format: <ul><li>Specify the record format name and the PFILE keyword.</li>
<li>Specify the record format name, the PFILE or JFILE keyword, and at least
one individual field.</li>
<li>Specify the record format name, the PFILE keyword, and the FORMAT keyword.</li>
</ul>
</div>
<p>The <a href="simpmult.htm">Simple and multiple format logical files in DDS</a> topic illustrates the
three ways to specify fields.</p>
<div class="p">For each of the three ways to specify fields in a record format, you can
have one of the following <em>access path</em> specifications: <ul><li>Specify no key fields (arrival sequence access path).<p>You cannot specify
select/omit fields unless you specify the DYNSLT keyword. You can specify
only one record format with one physical file on the PFILE keyword for the
logical file.</p>
</li>
<li>Specify one or more key fields (keyed sequence access path). <p>If you
specify more than one record format in the logical file, each record format
must have at least one key field specified. You can specify select/omit fields
for any of the record formats in the file.</p>
</li>
<li>Specify the REFACCPTH keyword (keyed sequence access path). <p>The access
path information from another physical or logical file is copied into the
file that you are defining.</p>
</li>
</ul>
</div>
<p>The maximum number of fields in a record format is 8000. If any of the
fields in the record format are date, time, timestamp, variable length, or
allows the null value, then the actual maximum number of fields can be less
than 8000. The maximum number of fields can vary depending on the number of
fields and combinations of fields that occur within the record format. The
maximum number of bytes in a record format is 32 766 if variable length fields
are not included and 32 740 if variable length fields are included.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="ldef.htm" title="A logical file determines how data records are selected and defined when read by an application program. A logical file can be a simple, multiple format, or join logical file.">Define a logical file using DDS</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="ldef.htm" title="A logical file determines how data records are selected and defined when read by an application program. A logical file can be a simple, multiple format, or join logical file.">Define a logical file using DDS</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="lleng.htm" title="Use these positions to specify the length of a physical or logical file field.">Length for physical and logical files (positions 30 through 34)</a></div>
</div>
</div>
</body>
</html>