73 lines
4.5 KiB
HTML
73 lines
4.5 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="concept" />
|
||
|
<meta name="DC.Title" content="Example: A logical file specifying a new record format" />
|
||
|
<meta name="abstract" content="The UNIQUE keyword is important in this example. The example specifies a record format different from the associated physical file." />
|
||
|
<meta name="description" content="The UNIQUE keyword is important in this example. The example specifies a record format different from the associated physical file." />
|
||
|
<meta name="DC.subject" content="examples of DDS, logical file with a new record format, UNIQUE keyword" />
|
||
|
<meta name="keywords" content="examples of DDS, logical file with a new record format, UNIQUE keyword" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafpmstexamp.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="logfilerecexamp" />
|
||
|
<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>Example: A logical file specifying a new record format</title>
|
||
|
</head>
|
||
|
<body id="logfilerecexamp"><a name="logfilerecexamp"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Example: A logical file specifying a new record format</h1>
|
||
|
<div><p>The UNIQUE keyword is important in this example. The example specifies
|
||
|
a record format different from the associated physical file.</p>
|
||
|
<p>The following logical file (called CUSMSTL2
|
||
|
for customer master logical file two) uses some of the fields in the physical
|
||
|
file CUSMSTP. Another logical file can name all fields, name fields in other
|
||
|
physical files as well, concatenate fields, change the order of fields, rename
|
||
|
fields, or choose different key fields. In this logical file, the programmer
|
||
|
merely omitted some fields from the physical file.</p>
|
||
|
<div class="fignone" id="logfilerecexamp__o5"><a name="logfilerecexamp__o5"><!-- --></a><span class="figcap">Figure 1. DDS for a logical file</span><pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
||
|
00010A*
|
||
|
00020A* SAMPLE LOGICAL FILE (CUSMSTL2)
|
||
|
00030A*
|
||
|
00040A <strong>(1)</strong>UNIQUE
|
||
|
00050A R CUSREC <strong>(2)</strong>PFILE(CUSMSTP)
|
||
|
00060A TEXT('Logical File Master Record')
|
||
|
00070A ACTNUM <strong>(3)</strong>
|
||
|
00080A NAME <strong>(3)</strong>
|
||
|
00090A ADDR <strong>(3)</strong>
|
||
|
00100A <strong>(4)</strong>K ACTNUM
|
||
|
A</pre>
|
||
|
</div>
|
||
|
<div class="p"><strong>Legend: </strong> <dl><dt class="dlterm">(1)</dt>
|
||
|
<dd>The UNIQUE keyword specifies that records with duplicate keys are not
|
||
|
allowed within a member of this logical file.</dd>
|
||
|
<dt class="dlterm">(2)</dt>
|
||
|
<dd>The keyword PFILE (required for logical files) specifies CUSMSTP.</dd>
|
||
|
<dt class="dlterm">(3)</dt>
|
||
|
<dd>The field names do not have R specified in position 29 as they do in physical
|
||
|
files or in any device file.</dd>
|
||
|
<dt class="dlterm">(4)</dt>
|
||
|
<dd>As in CUSMSTP, the field ACTNUM is treated as a key field.</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafpmstexamp.htm" title="This topic provides examples of data description specifications (DDS) for each type of file discussed in this topic. If you choose, you can use the examples in this topic with appropriate high-level language programs.">Examples: DDS for each file type</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|