99 lines
5.1 KiB
HTML
99 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="reference" />
|
|
<meta name="DC.Title" content="Specify key fields in join logical files (example 6)" />
|
|
<meta name="abstract" content="This topic discusses the rules for specifying key fields in join logical files." />
|
|
<meta name="description" content="This topic discusses the rules for specifying key fields in join logical files." />
|
|
<meta name="DC.subject" content="specifying, key field, in join logical files, example, field, key, example, example, specifying key fields, join logical file" />
|
|
<meta name="keywords" content="specifying, key field, in join logical files, example, field, key, example, example, specifying key fields, join logical file" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbafojnlof.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="rbafokfjlf" />
|
|
<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 key fields in join logical files (example 6)</title>
|
|
</head>
|
|
<body id="rbafokfjlf"><a name="rbafokfjlf"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Specify key fields in join logical files (example 6)</h1>
|
|
<div><p>This topic discusses the rules for specifying key fields in join
|
|
logical files.</p>
|
|
<div class="section"><div class="p">If you specify key fields in a join logical file, the following
|
|
rules apply: <ul><li>The key fields must exist in the primary physical file.</li>
|
|
<li>The key fields must be named in the join record format in the logical
|
|
file in positions 19 through 28.</li>
|
|
<li>The key fields cannot be fields defined as neither fields (N specified
|
|
in position 38 for the field) in the logical file.</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="section"><p>The following example illustrates the rules for key fields:</p>
|
|
</div>
|
|
<div class="example"> <pre><strong>JLF</strong>
|
|
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
|
A R JOINREC JFILE(PF1 PF2)
|
|
A J JOIN(PF1 PF2)
|
|
A JFLD(NBR NUMBER)
|
|
A JFLD(FLD3 FLD31)
|
|
A FLD1 RENAME(F1)
|
|
A FLD2 JREF(2)
|
|
A FLD3 35 N
|
|
A NAME
|
|
A TELEPHONE CONCAT(AREA LOCAL)
|
|
A K FLD1
|
|
A K NAME
|
|
A
|
|
|
|
<strong>PF1</strong>
|
|
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
|
A R REC1
|
|
A NBR 4
|
|
A F1 20
|
|
A FLD2 7 2
|
|
A FLD3 40
|
|
A NAME 20
|
|
A
|
|
|
|
<strong>PF2</strong>
|
|
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
|
A R REC2
|
|
A NUMBER 4
|
|
A FLD2 7 2
|
|
A FLD31 35
|
|
A AREA 3
|
|
A LOCAL 7
|
|
A</pre>
|
|
</div>
|
|
<div class="section"><div class="p">The following fields <strong>cannot</strong> be key fields: <ul><li><em>Nbr</em> (not named in positions 19 through 28)</li>
|
|
<li><em>Number</em> (not named in positions 19 through 28)</li>
|
|
<li><em>F1</em> (not named in positions 19 through 28)</li>
|
|
<li><em>Fld31</em> (comes from a secondary file)</li>
|
|
<li><em>Fld2</em> (comes from a secondary file)</li>
|
|
<li><em>Fld3</em> (is a neither field)</li>
|
|
<li><em>Area</em> and <em>Local</em> (not named in positions 19 through 28)</li>
|
|
<li><em>Telephone</em> (is based on fields from a secondary file)</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafojnlof.htm" title="These topics provide examples to illustrate how to set up a join logical file. Performance, integrity, and a summary of rules for join logical files are also included.">Set up a join logical file</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |