ibm-information-center/dist/eclipse/plugins/i5OS.ic.dbp_5.4.0.1/rbafodynsrsex.htm

87 lines
7.1 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="concept" />
<meta name="DC.Title" content="Select records using the Open Query File (OPNQRYF) command" />
<meta name="abstract" content="These topics provide examples of selecting records using the Open Query File (OPNQRYF) command." />
<meta name="description" content="These topics provide examples of selecting records using the Open Query File (OPNQRYF) command." />
<meta name="DC.subject" content="example, selecting records, using OPNQRYF command, selecting, record, using OPNQRYF command, Open Query File (OPNQRYF) command, using, selecting records, examples, OPNQRYF (Open Query File) command, selecting records, examples" />
<meta name="keywords" content="example, selecting records, using OPNQRYF command, selecting, record, using OPNQRYF command, Open Query File (OPNQRYF) command, using, selecting records, examples, OPNQRYF (Open Query File) command, selecting records, examples" />
<meta name="DC.Relation" scheme="URI" content="rbafodynrs.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodynsrex1.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodynsrex2.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodynsrex3.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodynsrex4.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodynsrex5.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodynsrex6.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoqrymapf.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodynsrex8.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodynsrex9.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafodynsrex10.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoex11.htm" />
<meta name="DC.Relation" scheme="URI" content="../rbam6/rbam6clmain.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbafodynsrsex" />
<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>Select records using the Open Query File (OPNQRYF) command</title>
</head>
<body id="rbafodynsrsex"><a name="rbafodynsrsex"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Select records using the Open Query File (OPNQRYF) command</h1>
<div><p>These topics provide examples of selecting records using the Open
Query File (OPNQRYF) command.</p>
<p>In all these examples, it is assumed that a single-format database file
(physical or logical) is being processed. (The FILE parameter on the OPNQRYF
command allows you to specify a record format name if the file is a multiple
format logical file.)</p>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbafodynsrex1.htm">Example 1: Select records using the Open Query File (OPNQRYF) command</a></strong><br />
This example shows how to select records with a specific value using the Open Query File (OPNQRYF) command.</li>
<li class="ulchildlink"><strong><a href="rbafodynsrex2.htm">Example 2: Select records using the Open Query File (OPNQRYF) command</a></strong><br />
This example shows how to select records with a specific date value using the Open Query File (OPNQRYF) command.</li>
<li class="ulchildlink"><strong><a href="rbafodynsrex3.htm">Example 3: Select records using the Open Query File (OPNQRYF) command</a></strong><br />
This example shows how to select records in a range of values using the Open Query File (OPNQRYF) command.</li>
<li class="ulchildlink"><strong><a href="rbafodynsrex4.htm">Example 4: Select records using the Open Query File (OPNQRYF) command</a></strong><br />
This example shows how to select records using the contains function of the Open Query File (OPNQRYF) command.</li>
<li class="ulchildlink"><strong><a href="rbafodynsrex5.htm">Example 5: Select records using the Open Query File (OPNQRYF) command</a></strong><br />
This example shows how to select records using multiple fields of the Open Query File (OPNQRYF) command.</li>
<li class="ulchildlink"><strong><a href="rbafodynsrex6.htm">Example 6: Select records using the Open Query File (OPNQRYF) command</a></strong><br />
This example shows how to use the Open Query File (OPNQRYF) command many times in a program.</li>
<li class="ulchildlink"><strong><a href="rbafoqrymapf.htm">Example 7: Select records using the Open Query File (OPNQRYF) command</a></strong><br />
This example shows how to map fields for packed numeric data fields using the Open Query File (OPNQRYF) command.</li>
<li class="ulchildlink"><strong><a href="rbafodynsrex8.htm">Example 8: Select records using the Open Query File (OPNQRYF) command</a></strong><br />
This example shows the <span class="q">"wildcard"</span> function of the Open Query
File (OPNQRYF) command.</li>
<li class="ulchildlink"><strong><a href="rbafodynsrex9.htm">Example 9: Select records using the Open Query File (OPNQRYF) command</a></strong><br />
This example shows how to specify the complex selection statements when you select records using the Open Query File (OPNQRYF) command.</li>
<li class="ulchildlink"><strong><a href="rbafodynsrex10.htm">Example 10: Select records using the Open Query File (OPNQRYF) command</a></strong><br />
This example shows the use of the coded character set identifiers (CCSIDs) when you run the Open Query File (OPNQRYF) command to select records.</li>
<li class="ulchildlink"><strong><a href="rbafoex11.htm">Example 11: Select records using the Open Query File (OPNQRYF) command</a></strong><br />
This example shows the use of sort sequence and language identifier when you run the Open Query File (OPNQRYF) command to select records.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafodynrs.htm" title="Dynamic record selection allows you to request a subset of the records in a file without using data description specifications (DDS).">Select records without using DDS</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="../rbam6/rbam6clmain.htm">Control language (CL)</a></div>
</div>
</div>
</body>
</html>