95 lines
5.6 KiB
HTML
95 lines
5.6 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="reference" />
|
|
<meta name="DC.Title" content="VALUES (Values) keyword for physical and logical files" />
|
|
<meta name="abstract" content="Specify this keyword at the field level, the select/omit-field level, or both." />
|
|
<meta name="description" content="Specify this keyword at the field level, the select/omit-field level, or both." />
|
|
<meta name="DC.subject" content="VALUES (Values) keyword" />
|
|
<meta name="keywords" content="VALUES (Values) keyword" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakbmstlfkeyw.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakbmstvaluefield.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rzakbmstvaluesselom.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="tdvalue" />
|
|
<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, VALUES</title>
|
|
</head>
|
|
<body id="tdvalue"><a name="tdvalue"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">VALUES (Values) keyword for physical and logical files </h1>
|
|
<div><p>Specify this keyword at the field level, the select/omit-field
|
|
level, or both.</p>
|
|
<div class="section"><div class="p">The format of the keyword is: <pre>VALUES(value-1 [value-2...[value-100]])</pre>
|
|
</div>
|
|
</div>
|
|
<div class="section"><h4 class="sectiontitle">Examples</h4><p>The following examples show how to specify
|
|
the VALUES keyword.</p>
|
|
</div>
|
|
<div class="example" id="tdvalue__e1"><a name="tdvalue__e1"><!-- --></a><h4 class="sectiontitle">Example 1</h4><p>The following example
|
|
uses character and numeric values.</p>
|
|
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
|
00010A R RECORD1 PFILE(PF1)
|
|
00020A FIELDA 1 0 VALUES(1 6 9) <span><span>1</span></span>
|
|
00030A FIELDB 1 VALUES('A' 'B' 'C') <span><span>1</span></span>
|
|
00040A K FIELDA
|
|
00050A S FIELDB VALUES('A' 'B') <span><span>2</span></span>
|
|
00060A S FIELDA VALUES(1 6) <span><span>2</span></span>
|
|
A</pre>
|
|
<dl><dt class="dlterm"><span>1</span></dt>
|
|
<dd>VALUES is specified for FIELDA and FIELDB as a validity checking keyword
|
|
for display files that refer to FIELDA and FIELDB.</dd>
|
|
<dt class="dlterm"><span>2</span></dt>
|
|
<dd>VALUES is also specified for FIELDA and FIELDB as a select/omit keyword.
|
|
Records from the physical file PF1 are retrieved through this logical file
|
|
record format depending on the values of the following fields: <ul><li>FIELDB: Records are selected only when FIELDB equals A or B.</li>
|
|
<li>FIELDA: Records not already selected are selected when FIELDA equals 1
|
|
or 6.</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<div class="example" id="tdvalue__e2"><a name="tdvalue__e2"><!-- --></a><h4 class="sectiontitle">Example 2</h4><p>The following example uses hexadecimal
|
|
values.</p>
|
|
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
|
|
00010A R RCD1 PFILE(PF1)
|
|
00020A CODEA
|
|
00030A FLD1
|
|
00040A FLD2
|
|
00050A K FLD1
|
|
00060A S CODEA VALUES(X'51' X'54' X'AE')
|
|
A</pre>
|
|
<p>VALUES is specified as a select/omit keyword for CODEA
|
|
(which is a 1-byte field). Records from physical file PF1 are retrieved through
|
|
this record format only if the value of field CODEA is hex 51, hex 54, or
|
|
hex AE.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rzakbmstvaluefield.htm">Specify VALUES at the field level</a></strong><br />
|
|
At the field level, this keyword specifies validity checking for the field that you are defining when it is referred to later during display file creation.</li>
|
|
<li class="ulchildlink"><strong><a href="rzakbmstvaluesselom.htm">Specify VALUES at the select or omit-field level</a></strong><br />
|
|
At the select/omit-field level, this keyword selects or omits records retrieved from the physical file(s) when your program sends an input operation using the record format in which the select/omit field is specified.</li>
|
|
</ul>
|
|
|
|
<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>
|
|
</body>
|
|
</html> |