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

98 lines
8.0 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="Set up a join logical file" />
<meta name="abstract" content="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." />
<meta name="description" content="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." />
<meta name="DC.subject" content="join logical file, considerations, joining, two physical files" />
<meta name="keywords" content="join logical file, considerations, joining, two physical files" />
<meta name="DC.Relation" scheme="URI" content="rbafologif.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafox2phyf.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafosetlf.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoljoin.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoduprc.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafomisjf.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafonflds.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafokfjlf.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafosojlf.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoj3mpf.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafojpfit.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafojdftv.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoacjlf.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafojoincons.htm" />
<meta name="DC.Relation" scheme="URI" content="../sqlp/rbafyjoin.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="rbafojnlof" />
<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>Set up a join logical file</title>
</head>
<body id="rbafojnlof"><a name="rbafojnlof"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Set up a join logical file</h1>
<div><p>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.</p>
<p>In general, the examples in these topics include a picture of the files,
data description specifications (DDS) for the files, and sample data. For
example 1, several cases are given that show how to join files in different
situations (when data in the physical files varies).</p>
<p>In these examples, for convenience and ease of recognition, join logical
files are shown with the label JLF, and physical files are illustrated with
the labels PF1, PF2, PF3, and so forth.</p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbafox2phyf.htm">Basic concepts of joining two physical files (example 1)</a></strong><br />
A <em>join logical file</em> is a logical file that combines (in
one record format) fields from two or more physical files because in the record
format not all the fields need to exist in all the physical files.</li>
<li class="ulchildlink"><strong><a href="rbafosetlf.htm">Set up a join logical file</a></strong><br />
This topic shows how to set up a join logical file.</li>
<li class="ulchildlink"><strong><a href="rbafoljoin.htm">Use more than one field to join files (example 2)</a></strong><br />
You can specify more than one join field to join a pair of files. This example shows the fields in the logical file and the two physical files.</li>
<li class="ulchildlink"><strong><a href="rbafoduprc.htm">Read duplicate records in secondary files (example 3)</a></strong><br />
Sometimes a join operation to a secondary file produces more than one record from the secondary file. When this occurs, specifying the JDUPSEQ keyword in the join specification for that secondary file tells the system to base the order of the duplicate records on the specified field in the secondary file.</li>
<li class="ulchildlink"><strong><a href="rbafomisjf.htm">Use join fields whose attributes are different (example 4)</a></strong><br />
Fields from physical files that you use as join fields generally have the same attributes (length, data type, and decimal positions). However, in some cases, the join fields might have different attributes.</li>
<li class="ulchildlink"><strong><a href="rbafonflds.htm">Describe fields that never appear in the record format (example 5)</a></strong><br />
Neither fields, which (N specified in position 38) can be used in join logical file for neither input nor output, are not included in the record format. This example shows how to describe such fields that never appear in the record format.</li>
<li class="ulchildlink"><strong><a href="rbafokfjlf.htm">Specify key fields in join logical files (example 6)</a></strong><br />
This topic discusses the rules for specifying key fields in join logical files.</li>
<li class="ulchildlink"><strong><a href="rbafosojlf.htm">Specify select/omit statements in join logical files</a></strong><br />
This topic discusses the rules for specifying select/omit statements in join logical files.</li>
<li class="ulchildlink"><strong><a href="rbafoj3mpf.htm">Join three or more physical files (example 7)</a></strong><br />
You can use a join logical file to join as many as 32 physical files. These files must be specified on the JFILE keyword. The first file specified on the JFILE keyword is the primary file; the other files are all secondary files.</li>
<li class="ulchildlink"><strong><a href="rbafojpfit.htm">Join a physical file to itself (example 8)</a></strong><br />
You can join a physical file to itself to read records that are formed by combining two or more records from the physical file itself.</li>
<li class="ulchildlink"><strong><a href="rbafojdftv.htm">Use default data for missing records from secondary files (example 9)</a></strong><br />
If you are joining more than two files and you specify the JDFTVAL keyword, the default value supplied by the system for a join field missing from a secondary file is used to join to other secondary files.</li>
<li class="ulchildlink"><strong><a href="rbafoacjlf.htm">A complex join logical file (example 10)</a></strong><br />
This example shows a more complex join logical file.</li>
<li class="ulchildlink"><strong><a href="rbafojoincons.htm">Join logical file considerations</a></strong><br />
These topics include the performance and integrity considerations for join logical files. They also provide a summary of rules for join logical files.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafologif.htm" title="These topics discuss some of the unique considerations for creating logical files.">Set up logical files</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../sqlp/rbafyjoin.htm">Join data from more than one table</a></div>
</div>
</div>
</body>
</html>