94 lines
5.4 KiB
HTML
94 lines
5.4 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="Use *NONE in the key field when creating a DDS file" />
|
|
<meta name="abstract" content="Key fields having the same key position should not be compared under two conditions." />
|
|
<meta name="description" content="Key fields having the same key position should not be compared under two conditions." />
|
|
<meta name="DC.subject" content="logical files, *NONE key field" />
|
|
<meta name="keywords" content="logical files, *NONE key field" />
|
|
<meta name="DC.Relation" scheme="URI" content="lkeynm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="logfileviewex.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="logfileviewex2.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="nonekeyfield" />
|
|
<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>Use *NONE in the key field when creating a DDS file</title>
|
|
</head>
|
|
<body id="nonekeyfield"><a name="nonekeyfield"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Use *NONE in the key field when creating a DDS file</h1>
|
|
<div><p>Key fields having the same key position should not be compared
|
|
under two conditions.</p>
|
|
<div class="p">The two conditions are: <ul><li>The key fields do not have the same field attributes (data type, length,
|
|
decimal positions, or access path keywords at the field level).</li>
|
|
<li>The key fields have the same attributes, but you do not want them to be
|
|
merged and sequenced together.</li>
|
|
</ul>
|
|
</div>
|
|
<p>To avoid unwanted comparisons between key fields, specify *NONE in place
|
|
of one of them and move the displaced key field to the next key position.
|
|
The operating system compares the values of key positions before and after
|
|
*NONE, but retrieves the affected records in the order in which the record
|
|
formats are specified in the DDS for the logical file.</p>
|
|
<p>You can specify *NONE two or more times on the following lines to displace
|
|
a key field to a key position for which a comparison of key field attributes
|
|
is relevant to your application.</p>
|
|
<p><a href="#nonekeyfield__cfig6a">Figure 1</a> shows *NONE as the key field.</p>
|
|
<div class="fignone" id="nonekeyfield__cfig6a"><a name="nonekeyfield__cfig6a"><!-- --></a><span class="figcap">Figure 1. Specify *NONE as the key field</span><pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
|
A R RECORD1 PFILE(PF1)
|
|
A FIELD1 6A
|
|
A FIELD2 4A
|
|
A FIELD3 10A
|
|
A K FIELD1
|
|
A K FIELD2
|
|
A K FIELD3
|
|
A
|
|
A R RECORD2 PFILE(PF2)
|
|
A FLD1 3A
|
|
A FLD2 4A
|
|
A FLD3 12A
|
|
A K *NONE
|
|
A K FLD2
|
|
A
|
|
A R RECORD3 PFILE(PF3)
|
|
A F1 6A
|
|
A F2 4A
|
|
A F3 10A
|
|
A K F1
|
|
A K F2
|
|
A K F3
|
|
A</pre>
|
|
</div>
|
|
<p>In <a href="#nonekeyfield__cfig6a">Figure 1</a>, the attributes for FIELD2,
|
|
FLD2, and F2, must be identical. Because you specified *NONE
|
|
for the first key field of the second record, then FIELD1 and F1 (first key
|
|
field of the first record and first key field of the third record) must have
|
|
identical attributes. FIELD3 and F3 must also have identical attributes; there
|
|
is no corresponding field in the second record format.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="lkeynm.htm" title="When you specify K in position 17, the name specified in positions 19 through 28 is a key field name.">Key field name</a></div>
|
|
</div>
|
|
<div class="relref"><strong>Related reference</strong><br />
|
|
<div><a href="logfileviewex.htm" title="In this example, a logical file views records of two physical files through two different record formats: CLSHST (class history) and JOBHST (job history).">Specify the key field (example 1)</a></div>
|
|
<div><a href="logfileviewex2.htm" title="In this example, a logical file views the same two physical files as in Example 1, but the second record format in the logical file has *NONE specified in key position 2.">Specify the key field (example 2)</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |