58 lines
3.9 KiB
HTML
58 lines
3.9 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="Considerations for arranging records" />
|
||
|
<meta name="abstract" content="This topic discusses the considerations for using the Open Query File (OPNQRYF) command to arrange records." />
|
||
|
<meta name="description" content="This topic discusses the considerations for using the Open Query File (OPNQRYF) command to arrange records." />
|
||
|
<meta name="DC.subject" content="record, arranging, parameter, FORMAT" />
|
||
|
<meta name="keywords" content="record, arranging, parameter, FORMAT" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafoopnqf.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="rbafocarr" />
|
||
|
<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>Considerations for arranging records</title>
|
||
|
</head>
|
||
|
<body id="rbafocarr"><a name="rbafocarr"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Considerations for arranging records</h1>
|
||
|
<div><p>This topic discusses the considerations for using the Open Query
|
||
|
File (OPNQRYF) command to arrange records.</p>
|
||
|
<p>The default processing for the OPNQRYF command provides records in any
|
||
|
order that improves performance and does not conflict with the order specified
|
||
|
on the KEYFLD parameter. Therefore, unless you specify the KEYFLD parameter
|
||
|
to either name specific key fields or specify KEYFLD(*FILE), the sequence
|
||
|
of the records returned to your program can vary each time you run the same
|
||
|
OPNQRYF command.</p>
|
||
|
<p>When you specify the KEYFLD(*FILE) parameter option for the OPNQRYF command,
|
||
|
and a sort sequence other than *HEX has been specified for the query with
|
||
|
the job default or the OPNQRYF SRTSEQ parameter, you can receive your records
|
||
|
in an order that does not reflect the true file order. If the file is keyed,
|
||
|
the query's sort sequence is applied to the key fields of the file and informational
|
||
|
message CPI431F is sent. The file's sort sequence and alternative collating
|
||
|
sequence table are ignored for the ordering, if they exist. This allows users
|
||
|
to indicate which fields to apply a sort sequence to without having to list
|
||
|
all the field names. If a sort sequence is not specified for the query (for
|
||
|
example, *HEX), ordering is done as it was prior to Version 2 Release 3.</p>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafoopnqf.htm" title="The Open Query File (OPNQRYF) command is a control language (CL) command that allows you to perform many data processing functions on database files. These topics discuss how to create a query using the OPNQRYF command, how to specify parameters for its major functions, and how to use it with your high-level language program.">Use Open Query File (OPNQRYF) command</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|