95 lines
6.3 KiB
HTML
95 lines
6.3 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="task" />
|
|
<meta name="DC.Title" content="Simple and multiple format logical files in DDS" />
|
|
<meta name="abstract" content="You must specify the PFILE keyword at the record level for simple and multiple format logical files. In a multiple format logical file, a record format can use only the fields common to all the physical files specified on the PFILE keyword for that record format." />
|
|
<meta name="description" content="You must specify the PFILE keyword at the record level for simple and multiple format logical files. In a multiple format logical file, a record format can use only the fields common to all the physical files specified on the PFILE keyword for that record format." />
|
|
<meta name="DC.subject" content="simple logical files, multiple format logical files, logical files, simple, multiple format" />
|
|
<meta name="keywords" content="simple logical files, multiple format logical files, logical files, simple, multiple format" />
|
|
<meta name="DC.Relation" scheme="URI" content="ldef.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakbmstlfpos.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="lfname.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="logmultrecfmts.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="lleng.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="ldata.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="simpmult" />
|
|
<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>Simple and multiple format logical files in DDS</title>
|
|
</head>
|
|
<body id="simpmult"><a name="simpmult"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Simple and multiple format logical files in DDS</h1>
|
|
<div><p>You must specify the PFILE keyword at the record level for simple
|
|
and multiple format logical files. In a multiple format logical file, a record
|
|
format can use only the fields common to all the physical files specified
|
|
on the PFILE keyword for that record format.</p>
|
|
<div class="section">Specify the entries in the following order to define a simple or
|
|
multiple format logical file:</div>
|
|
<ol><li><strong>Optional: </strong><span>File-level entries</span></li>
|
|
<li><span>Record-level entries</span></li>
|
|
<li><strong>Optional: </strong><span>Field-level entries</span></li>
|
|
<li><strong>Optional: </strong><span>Key field-level entries</span></li>
|
|
<li><strong>Optional: </strong><span>Select and omit-field level entries</span></li>
|
|
</ol>
|
|
<div class="section"> <p>Repeat steps 2 through 5 for each record format in the file.</p>
|
|
<p>The
|
|
following example shows a multiple format logical file coding example.</p>
|
|
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
|
00010A* LOGICAL FILE EXAMPLE
|
|
00020A* INVENTORY FORMAT
|
|
00030A R INVFMT PFILE(INVENTORY)
|
|
00040A K ITEM
|
|
00050A*
|
|
00060A* ORDER FORMAT
|
|
00070A R ORDFMT PFILE(ORDER)
|
|
00080A TEXT('ORDER ANALYSIS')
|
|
00090A ITEM
|
|
00100A ORDER 10
|
|
00110A SUPPLY +2
|
|
00120A SHPDAT CONCAT(SHPMO SHPDA SHPYR)
|
|
00130A QTY 5P RENAME(QTYDUE)
|
|
00140A K ITEM
|
|
00150A K SHPYR
|
|
00160A K SHPMO
|
|
00170A K SHPDA
|
|
00180A O QTYDUE CMP(LT 1)
|
|
00190A*
|
|
00200A* ACCOUNTING FORMAT
|
|
00210A R ACTFMT PFILE(ACCOUNTS)
|
|
00220A FORMAT(ACCOUNTL)
|
|
00230A K ITEM
|
|
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="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="logmultrecfmts.htm" title="When you specify more than one record format in a logical file, you must specify at least one key field for every record format in the logical file.">DDS logical files with more than one record format</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><a href="lleng.htm" title="Use these positions to specify the length of a physical or logical file field.">Length for physical and logical files (positions 30 through 34)</a></div>
|
|
<div><a href="ldata.htm" title="For a physical file, use this position to specify the data type of the field within the database. Specify data type in a logical file only to override or change the data type of the corresponding field in the physical file on which this logical file is based.">Data type for physical and logical files (position 35)</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |