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

92 lines
5.2 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="REF (Reference) keyword—physical files only" />
<meta name="abstract" content="Use this file-level keyword to specify the name of the file from which field descriptions are retrieved." />
<meta name="description" content="Use this file-level keyword to specify the name of the file from which field descriptions are retrieved." />
<meta name="DC.subject" content="REF (Reference) keyword" />
<meta name="keywords" content="REF (Reference) keyword" />
<meta name="DC.Relation" scheme="URI" content="rzakbmstlfkeyw.htm" />
<meta name="DC.Relation" scheme="URI" content="pfrefer.htm" />
<meta name="DC.Relation" scheme="URI" content="../dds/specref.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="pref" />
<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>Physical and Logical Files, REF</title>
</head>
<body id="pref"><a name="pref"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">REF (Reference) keyword—physical files only </h1>
<div><p>Use this file-level keyword to specify the name of the file from
which field descriptions are retrieved.</p>
<div class="section"><div class="p">The format of the keyword is: <pre>REF([library-name/]database-file-name [record-format-name])</pre>
</div>
<p>REF
supplies the field attributes from a previously defined record format. Specify
the file name once in the REF keyword instead of on several REFFLD keywords
if each field description refers to the same file. To refer to more than one
file, use the REFFLD keyword. You can specify the REF keyword only once.</p>
<p>The
database-file-name is a required parameter value for this keyword. The library-name
and the record-format-name are optional.</p>
<p>If you do
not specify the library-name, the library list (*LIBL) in effect at file creation
time is used. Specify a record-format-name as a parameter value for this keyword
if there is more than one record format. If you do not specify the record-format-name,
each record format is searched sequentially. The first occurrence of the field
name is used.</p>
<p>You can specify a distributed data management (DDM) file
on this keyword.</p>
<p>When using a DDM file, the database-file-name and library-name
are the DDM file and library names on the source system. The record-format-name
is the record format name in the remote file on the target system.</p>
<div class="note"><span class="notetitle">Note:</span> Interactive
data definition utility (IDDU) files cannot be used as reference files.</div>
</div>
<div class="example"><h4 class="sectiontitle">Examples</h4><p>The following example shows how to specify
the REF keyword.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A REF(FILE1)
00020A R RECORD
00030A FLD1 R
A</pre>
<p>FLD1 has the same attributes as the first (or only) FLD1
in FILE1.</p>
</div>
<div class="example"><pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A REF(LIB1/FILE1 RECORD2)
00020A R RECORD
00030A FLD1 R
A</pre>
<p>FLD1 has the same attributes as FLD1 in RECORD2 in FILE1
in LIB1.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzakbmstlfkeyw.htm" title="This topic lists valid keyword entries for describing physical and logical files. They are typed in positions 45 through 80 (functions).">Keyword entries for physical and logical files (positions 45 through 80)</a></div>
</div>
<div class="relref"><strong>Related reference</strong><br />
<div><a href="pfrefer.htm" title="You use this position to specify reference for physical files only.">Reference for physical and logical files (position 29)</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>