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

109 lines
5.6 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="reference" />
<meta name="DC.Title" content="Match records in primary and secondary files (case 1)" />
<meta name="DC.subject" content="example, matching records in primary and secondary files, join logical file, matching records, case" />
<meta name="keywords" content="example, matching records in primary and secondary files, join logical file, matching records, case" />
<meta name="DC.Relation" scheme="URI" content="rbafox2phyf.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="rbafocas1m" />
<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>Match records in primary and secondary files (case 1)</title>
</head>
<body id="rbafocas1m"><a name="rbafocas1m"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Match records in primary and secondary files (case 1)</h1>
<div><div class="section"><p>Assume that a join logical file is specified as in <a href="rbafox2phyf.htm#rbafox2phyf">Basic concepts of joining two physical files (example 1)</a>,
and four records are contained in both PF1 and PF2, as shown in the following
two tables.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><caption>Table 1. Physical file 1 (PF1)</caption><thead align="left"><tr valign="bottom"><th valign="bottom" id="d0e33">Employee number</th>
<th valign="bottom" id="d0e35">Name</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e33 ">235</td>
<td valign="top" headers="d0e35 ">Anne</td>
</tr>
<tr><td valign="top" headers="d0e33 ">440</td>
<td valign="top" headers="d0e35 ">Doug</td>
</tr>
<tr><td valign="top" headers="d0e33 ">500</td>
<td valign="top" headers="d0e35 ">Mark</td>
</tr>
<tr><td valign="top" headers="d0e33 ">729</td>
<td valign="top" headers="d0e35 ">Sue</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><caption>Table 2. Physical file 2 (PF2)</caption><thead align="left"><tr valign="bottom"><th valign="bottom" id="d0e66">Employee number</th>
<th valign="bottom" id="d0e68">Salary</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e66 ">235</td>
<td valign="top" headers="d0e68 ">1700.00</td>
</tr>
<tr><td valign="top" headers="d0e66 ">440</td>
<td valign="top" headers="d0e68 ">950.50</td>
</tr>
<tr><td valign="top" headers="d0e66 ">500</td>
<td valign="top" headers="d0e68 ">2100.00</td>
</tr>
<tr><td valign="top" headers="d0e66 ">729</td>
<td valign="top" headers="d0e68 ">1400.90</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section"><p>The program does four read operations and gets the following records.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" width="100%" frame="border" border="1" rules="all"><caption>Table 3. Join logical file (JLF)</caption><thead align="left"><tr valign="bottom"><th valign="bottom" width="33.33333333333333%" id="d0e103">Employee number</th>
<th valign="bottom" width="33.33333333333333%" id="d0e105">Name</th>
<th valign="bottom" width="33.33333333333333%" id="d0e107">Salary</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="33.33333333333333%" headers="d0e103 ">235</td>
<td valign="top" width="33.33333333333333%" headers="d0e105 ">Anne</td>
<td valign="top" width="33.33333333333333%" headers="d0e107 ">1700.00</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e103 ">440</td>
<td valign="top" width="33.33333333333333%" headers="d0e105 ">Doug</td>
<td valign="top" width="33.33333333333333%" headers="d0e107 ">950.50</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e103 ">500</td>
<td valign="top" width="33.33333333333333%" headers="d0e105 ">Mark</td>
<td valign="top" width="33.33333333333333%" headers="d0e107 ">2100.00</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e103 ">729</td>
<td valign="top" width="33.33333333333333%" headers="d0e105 ">Sue</td>
<td valign="top" width="33.33333333333333%" headers="d0e107 ">1400.90</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafox2phyf.htm" title="A join logical file 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.">Basic concepts of joining two physical files (example 1)</a></div>
</div>
</div>
</body>
</html>