ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakb_5.4.0.1/joins.htm

72 lines
4.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="task" />
<meta name="DC.Title" content="Join logical files in DDS" />
<meta name="abstract" content="Join logical files combine different fields from more than one physical file into a single record. You must specify the JFILE keyword at the record level for join logical files." />
<meta name="description" content="Join logical files combine different fields from more than one physical file into a single record. You must specify the JFILE keyword at the record level for join logical files." />
<meta name="DC.Relation" scheme="URI" content="ldef.htm" />
<meta name="DC.Relation" scheme="URI" content="../dds/rbafpmstsyntax.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakbmstlfpos.htm" />
<meta name="DC.Relation" scheme="URI" content="lfname.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="joins" />
<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>Join logical files in DDS</title>
</head>
<body id="joins"><a name="joins"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Join logical files in DDS</h1>
<div><p>Join logical files combine different fields from more than one
physical file into a single record. You must specify the JFILE keyword at
the record level for join logical files.</p>
<div class="section">Specify the entries in the following order to define a join logical
file.<div class="note"><span class="notetitle">Note:</span> Because only one record format is allowed in a join logical file,
specify these entries only once.</div>
</div>
<ol><li><strong>Optional: </strong><span>Specify file-level entries</span></li>
<li><span>Specify record-level entries</span></li>
<li><span>Specify join-level entries</span></li>
<li><span>Specify field-level entries</span></li>
<li><strong>Optional: </strong><span>Specify key field-level entries</span></li>
<li><strong>Optional: </strong><span>Specify select/omit-field level entries</span></li>
</ol>
<div class="example">The following example shows the code for a join logical file.<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A* Joins fields from two physical files into one record format
00020A R RECORD1 JFILE(PF1 PF2)
00030A J JOIN(PF1 PF2)
00040A JFLD(NAME NAME)
00050A NAME JREF(1)
00060A ADDR
00070A PHONE
A</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="ldef.htm" title="A logical file determines how data records are selected and defined when read by an application program. A logical file can be a simple, multiple format, or join logical file.">Define a logical file using DDS</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rzakbmstlfpos.htm" title="The first 44 positions of the DDS form are called positional entries.">Positional entries for physical and logical files (positions 1 through 44)</a></div>
<div><a href="lfname.htm" title="Use these positions to specify record or field names.">Name for physical and logical files (positions 19 through 28)</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../dds/rbafpmstsyntax.htm">Rules for DDS keywords and parameter values</a></div>
</div>
</div>
</body>
</html>