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

110 lines
5.8 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="Record missing in secondary file: JDFTVAL keyword not specified (case 2A)" />
<meta name="DC.subject" content="example, record missing in secondary file, JDFTVAL keyword not specified, JDFTVAL (Join Default Values) keyword, Join Default Values (JDFTVAL) keyword, keyword, DDS, JDFTVAL (Join Default Values)" />
<meta name="keywords" content="example, record missing in secondary file, JDFTVAL keyword not specified, JDFTVAL (Join Default Values) keyword, Join Default Values (JDFTVAL) keyword, keyword, DDS, JDFTVAL (Join Default Values)" />
<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="rbafocas2a" />
<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>Record missing in secondary file: JDFTVAL keyword not specified (case
2A)</title>
</head>
<body id="rbafocas2a"><a name="rbafocas2a"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Record missing in secondary file: JDFTVAL keyword not specified (case
2A)</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 there are four records in PF1 and three records in 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="d0e39">Employee number</th>
<th valign="bottom" id="d0e41">Name</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e39 ">235</td>
<td valign="top" headers="d0e41 ">Anne</td>
</tr>
<tr><td valign="top" headers="d0e39 ">440</td>
<td valign="top" headers="d0e41 ">Doug</td>
</tr>
<tr><td valign="top" headers="d0e39 ">500</td>
<td valign="top" headers="d0e41 ">Mark</td>
</tr>
<tr><td valign="top" headers="d0e39 ">729</td>
<td valign="top" headers="d0e41 ">Sue</td>
</tr>
</tbody>
</table>
</div>
</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="d0e72">Employee number</th>
<th valign="bottom" id="d0e74">Salary</th>
</tr>
</thead>
<tbody><tr><td valign="top" headers="d0e72 ">235</td>
<td valign="top" headers="d0e74 ">1700.00</td>
</tr>
<tr><td valign="top" headers="d0e72 ">440</td>
<td valign="top" headers="d0e74 ">950.50</td>
</tr>
<tr><td valign="top" headers="d0e72 ">729</td>
<td valign="top" headers="d0e74 ">1400.90</td>
</tr>
</tbody>
</table>
</div>
<div class="section"><p>In PF2, no record is found for number 500.</p>
</div>
<div class="section"><p>The program reads the join logical file 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="d0e107">Employee number</th>
<th valign="bottom" width="33.33333333333333%" id="d0e109">Name</th>
<th valign="bottom" width="33.33333333333333%" id="d0e111">Salary</th>
</tr>
</thead>
<tbody><tr><td valign="top" width="33.33333333333333%" headers="d0e107 ">235</td>
<td valign="top" width="33.33333333333333%" headers="d0e109 ">Anne</td>
<td valign="top" width="33.33333333333333%" headers="d0e111 ">1700.00</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e107 ">440</td>
<td valign="top" width="33.33333333333333%" headers="d0e109 ">Doug</td>
<td valign="top" width="33.33333333333333%" headers="d0e111 ">950.50</td>
</tr>
<tr><td valign="top" width="33.33333333333333%" headers="d0e107 ">729</td>
<td valign="top" width="33.33333333333333%" headers="d0e109 ">Sue</td>
<td valign="top" width="33.33333333333333%" headers="d0e111 ">1400.90</td>
</tr>
</tbody>
</table>
</div>
<p>If you do not specify the JDFTVAL keyword and no match is found
for the join field in the secondary file, the record is not included in the
join logical file.</p>
</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>