ibm-information-center/dist/eclipse/plugins/i5OS.ic.dds_5.4.0.1/lfexam.htm

71 lines
4.1 KiB
HTML
Raw Permalink 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="concept" />
<meta name="DC.Title" content="DDS syntax for a simple logical file" />
<meta name="DC.subject" content="syntax coding examples, logical files" />
<meta name="keywords" content="syntax coding examples, logical files" />
<meta name="DC.Relation" scheme="URI" content="syntaxexam.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="lfexam" />
<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>DDS syntax for a simple logical file</title>
</head>
<body id="lfexam"><a name="lfexam"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">DDS syntax for a simple logical file</h1>
<div><div class="fignone"><br /><img src="rv2f115.gif" alt="Syntax for a Simple Logical&#xA;File. An illustration of a DDS coding form that describes a simple logical&#xA;file." /><br /></div>
<dl><dt class="dlterm"><span>1</span></dt>
<dd>Comments (optional): Comments can appear on any line in DDS. They are
identified by an asterisk in position 7.</dd>
<dt class="dlterm"><span>2</span></dt>
<dd>File level (optional): File-level keywords appear before the record format
name (RECORD1 on line 00040).</dd>
<dt class="dlterm"><span>3</span></dt>
<dd>Record level (at least one is required): R in position 17 identifies
RECORD1 as a record format name. In simple or multiple format logical files,
the PFILE keyword is required for every record format. The record level continues
until the first field is named.</dd>
<dt class="dlterm"><span>4</span></dt>
<dd>Field level: Field names and field attributes are
not required for logical files.</dd>
<dt class="dlterm"><span>5</span></dt>
<dd>Key field level (optional): K in position 17 identifies the field as a
key field. A K must be specified for each key field. Specify the key field
level by repeating one or more field names (such as FIELDA) after the field-level
specifications.</dd>
<dt class="dlterm"><span>6</span></dt>
<dd>Select and omit levels (optional): S in position 17 identifies FIELDB
as a select field. (O in position 17 identifies a field as an omit field.)
The select and omit levels follow the key field level.</dd>
</dl>
<div class="note"><span class="notetitle">Notes:</span> <ol><li>To form a multiple-format logical file, specify more record
formats within the file by repeating items <span>3</span> through <span>6</span>,
or specify more than one file on the PFILE keyword.</li>
<li>See the <a href="../rzakb/rzakbmstlfpos.htm">Positional
entries for physical and logical files</a> topic for a description of each
of the columns shown in the figure.</li>
</ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="syntaxexam.htm" title="These topics provide syntax coding examples. Except for HLPARA, JFILE, JFLD, and PFILE, the keywords shown in these examples are not actual keywords. They indicate where you should specify the keywords.">Examples: DDS syntax coding</a></div>
</div>
</div>
</body>
</html>