ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzakd_5.4.0.1/rzakdmstptref.htm

92 lines
5.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="reference" />
<meta name="DC.Title" content="REF (Reference) keyword in printer files" />
<meta name="abstract" content="Use this file-level keyword to specify the name of a file from which field descriptions are to be retrieved." />
<meta name="description" content="Use this file-level keyword to specify the name of a file from which field descriptions are to be retrieved." />
<meta name="DC.subject" content="REF (Reference) keyword" />
<meta name="keywords" content="REF (Reference) keyword" />
<meta name="DC.Relation" scheme="URI" content="rzakdmstprkey.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="rzakdmstptref" />
<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>REF (Reference) keyword in printer files</title>
</head>
<body id="rzakdmstptref"><a name="rzakdmstptref"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">REF (Reference) keyword in printer files</h1>
<div><p>Use this file-level keyword to specify the name of a file from
which field descriptions are to be retrieved.</p>
<div class="section"><p>The format of the keyword is:</p>
<pre>REF([library-name/]data-base-file-name [record-format-name])</pre>
<p>Use
REF when you want to duplicate descriptive information from one or more fields
in a previously defined record format. You can code the file name once on
the REF keyword rather than on the REFFLD keyword with each of the field descriptions
that reference the file.</p>
<p>If there is more than one record
format in the referenced file, specify a record format name as a parameter
value for this keyword to tell the <span class="keyword"><font color="Purple">i5/OS™</font></span> operating system which record format to use,
unless the formats should be searched sequentially.</p>
<p>The database-file-name
is required for this keyword. The record-format-name and the library-name
are optional.</p>
<p>If you do not specify the library-name,
the current library list at file creation time is used. If you do not specify
the record-format-name, each format is searched in order (as they are specified).
The first occurrence of the field name is used.</p>
<p>You can specify a distributed
data management (DDM) file on this keyword. When you use a DDM
file, the data-base-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> IDDU files cannot be used
as reference files.</div>
<p>Option indicators are not valid for this keyword.</p>
</div>
<div class="section"><h4 class="sectiontitle">Examples</h4><p>The following examples show how to specify
the REF keyword.</p>
<p><strong>Example 1:</strong></p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A REF(FILE1)
00020A R RECORD
00030A FLD1 R 2 2
A</pre>
<p>FLD1 has the same attributes as the first (or only) FLD1
in FILE1.</p>
<p><strong>Example 2:</strong></p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A REF(LIB1/FILE1 RECORD2)
00020A R RECORD
00030A FLD1 R 2 2
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="rzakdmstprkey.htm" title="See the valid keyword entries for defining printer files in this topic.">Keyword entries for printer files (positions 45 through 80)</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../dds/specref.htm">When to specify REF and REFFLD keywords for DDS files</a></div>
</div>
</div>
</body>
</html>