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

91 lines
5.4 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="RANGE (Range) keyword for physical and logical files" />
<meta name="abstract" content="Specify this keyword at the field level, the select- or omit-field level, or both." />
<meta name="description" content="Specify this keyword at the field level, the select- or omit-field level, or both." />
<meta name="DC.subject" content="RANGE (Range) keyword" />
<meta name="keywords" content="RANGE (Range) keyword" />
<meta name="DC.Relation" scheme="URI" content="rzakbmstlfkeyw.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakbmstrangefield.htm" />
<meta name="DC.Relation" scheme="URI" content="rzakbmstrangeselom.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="tdrange" />
<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, RANGE</title>
</head>
<body id="tdrange"><a name="tdrange"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">RANGE (Range) keyword for physical and logical files</h1>
<div><p>Specify this keyword at the field level, the select- or omit-field
level, or both.</p>
<div class="section"><div class="p">The format of the keyword is: <pre>RANGE(low-value high-value)</pre>
</div>
</div>
<div class="example" id="tdrange__e1"><a name="tdrange__e1"><!-- --></a><h4 class="sectiontitle">Example 1</h4><p>The following example shows how
to specify character and numeric strings for the RANGE keyword.</p>
<pre>|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A R RECORD PFILE(PF1)
A
00020A FIELDA 1 0 RANGE(2 5) <span><span>1</span></span>
00030A FIELDB 1 RANGE('2' '5')
00040A FIELDC
00050A K FIELDD
00060A S FIELDA RANGE(1 4) <span><span>2</span></span>
A</pre>
<p>In this example, RANGE (<span>1</span>) is specified for
FIELDA and FIELDB as a validity checking keyword for display files that refer
to FIELDA and FIELDB. In the display file, RANGE requires that the workstation
user type only 2, 3, 4, or 5 in FIELDA or FIELDB. FIELDA is a numeric field
and FIELDB is a character field. The type of field you specify depends on
the high-level language the program is written in.</p>
<p>RANGE (<span>2</span>)
is specified as a select/omit keyword for FIELDA. Records from the physical
file PF1 are retrieved through this logical file record format only if the
value of FIELDA is 1, 2, 3, or 4.</p>
</div>
<div class="example" id="tdrange__e2"><a name="tdrange__e2"><!-- --></a><h4 class="sectiontitle">Example 2</h4><p>The following example uses hexadecimal
character strings when specifying the RANGE keyword.</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 RANGE(X'51' X'54')
A</pre>
<p>RANGE 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 from hex 51 through
hex 54.</p>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rzakbmstrangefield.htm">Specify RANGE 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="rzakbmstrangeselom.htm">Specify RANGE 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>