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

94 lines
5.9 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="Reference for physical and logical files (position 29)" />
<meta name="abstract" content="You use this position to specify reference for physical files only." />
<meta name="description" content="You use this position to specify reference for physical files only." />
<meta name="DC.subject" content="reference, logical files, physical files" />
<meta name="keywords" content="reference, logical files, physical files" />
<meta name="DC.Relation" scheme="URI" content="rzakbmstlfpos.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakbmstpref.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakbmstpreffld.htm" />
<meta name="DC.Relation" scheme="URI" content="../dds/specref.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakbmstpreffld.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="pfrefer" />
<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>Reference for physical and logical files (position 29)</title>
</head>
<body id="pfrefer"><a name="pfrefer"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Reference for physical and logical files (position 29)</h1>
<div><p>You use this position to specify reference for physical files only.</p>
<div class="section"><p>For a logical file, leave this position blank. All logical files
automatically provide the reference capability for all specified fields. Any
attributes that are not specified explicitly in the logical file are furnished
from the corresponding field in the physical file record format.</p>
<p>For
a physical file, specify R in this position to refer to the attributes of
a previously defined named field (called the <dfn class="term">referenced field</dfn>).
You must specify the REF or the REFFLD keyword. The referenced field can be
previously defined in either the physical file you are defining or a previously
created database file. The field attributes referred to are the length, data
type, and decimal positions of the field, as well as the ALIAS, COLHDG, DATFMT,
DATSEP, FLTPCN, REFSHIFT, TEXT, TIMFMT, TIMSEP, VARLEN, editing, and validity
checking keywords.</p>
<p>If R is not specified, you must specify the field
attributes for this field.</p>
<div class="note"><span class="notetitle">Note:</span> If the DATFMT keyword is overridden on
a reference field to *ISO, *EUR, *USA, or *JIS, the DATSEP keyword is not
referenced.</div>
<p>Position 29 must be blank at the file and record levels.</p>
<p>The
referenced field name cannot be the same as the field you are defining if
that field is in the file you are defining. If the names are the same, specify
the name of the file defining the referenced field as a parameter value with
the REF or REFFLD keyword. If the names are different, specify the name of
the referenced field with the REFFLD keyword.</p>
<div class="p">To override
specific attributes of the referenced field, specify those attributes for
the field you are defining. In addition: <ul><li>If you specify Edit Code (EDTCDE) or Edit Word (EDTWRD) on the field,
no editing specifications are copied from the referenced field.</li>
<li>If you specify CHECK (AB, ME, MF, M10, M10F, M11, M11F, VN, or VNE), CHKMSGID,
COMP, RANGE, or VALUES on the field, no validity checking specifications are
copied from the referenced field.</li>
<li>If you specify data type, field length, or decimal positions for the field
you are defining, then neither editing nor validity checking keywords are
copied from the referenced field.</li>
</ul>
<div class="note"><span class="notetitle">Note:</span> After the physical file is created, the referenced file can be
deleted or changed without affecting the field descriptions in the physical
file. To incorporate changes made in the referenced file, delete and re-create
the physical file.</div>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <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>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="rzakbmstpref.htm" title="Use this file-level keyword to specify the name of the file from which field descriptions are retrieved.">REF (Reference) keyword—physical files only</a></div>
<div><a href="rzakbmstpreffld.htm" title="Use this field-level keyword to refer to a field under one of these three conditions.">REFFLD (Referenced Field) keyword—physical files only</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../dds/specref.htm">When to specify REF and REFFLD keywords for DDS files</a></div>
</div>
</div>
</body>
</html>