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

87 lines
7.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="concept" />
<meta name="DC.Title" content="Sequential-only processing of database files" />
<meta name="abstract" content="If your program processes a database file sequentially for input only or output only, you might be able to improve performance using the sequential-only processing (SEQONLY) parameter on the Override with Database File (OVRDBF) or the Open Database File (OPNDBF) command." />
<meta name="description" content="If your program processes a database file sequentially for input only or output only, you might be able to improve performance using the sequential-only processing (SEQONLY) parameter on the Override with Database File (OVRDBF) or the Open Database File (OPNDBF) command." />
<meta name="DC.subject" content="sequential-only processing, blocked input/output, improving performance with, processing, sequential-only, input/output, blocked, parameter, SEQONLY (Sequential-Only Processing), SEQONLY (Sequential-Only Processing) parameter, Sequential-Only Processing (SEQONLY) parameter, NBRRCDS (Number Of Records Retrieved At Once) parameter, Number Of Records Retrieved At Once (NBRRCDS) parameter, NBRRCDS (Number Of Records Retrieved At Once), sequential-only processing, SEQONLY parameter" />
<meta name="keywords" content="sequential-only processing, blocked input/output, improving performance with, processing, sequential-only, input/output, blocked, parameter, SEQONLY (Sequential-Only Processing), SEQONLY (Sequential-Only Processing) parameter, Sequential-Only Processing (SEQONLY) parameter, NBRRCDS (Number Of Records Retrieved At Once) parameter, Number Of Records Retrieved At Once (NBRRCDS) parameter, NBRRCDS (Number Of Records Retrieved At Once), sequential-only processing, SEQONLY parameter" />
<meta name="DC.Relation" scheme="URI" content="rbafopreopn.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoocons.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoicons.htm" />
<meta name="DC.Relation" scheme="URI" content="rbafoclosc.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="rbafoseqop" />
<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>Sequential-only processing of database files</title>
</head>
<body id="rbafoseqop"><a name="rbafoseqop"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Sequential-only processing of database files</h1>
<div><p> If your program processes a database file sequentially for input
only or output only, you might be able to improve performance using the sequential-only
processing (SEQONLY) parameter on the Override with Database File (OVRDBF)
or the Open Database File (OPNDBF) command.</p>
<div class="p">To use SEQONLY processing, the file must be opened for input-only or output-only.
The NBRRCDS parameter can be used with any combination of open options. (The
Open Query File (OPNQRYF) command uses sequential-only processing whenever
possible.) Depending on your high-level language specifications, the high-level
language can also use sequential-only processing as the default. For example,
if you open a file for input only and the only file operations specified in
the high-level language program are sequential read operations, then the high-level
language automatically requests sequential-only processing. <div class="note"><span class="notetitle">Note:</span> File positioning
operations are not considered sequential read operations; therefore, a high-level
language program containing positioning operations will <em>not</em> automatically
request sequential-only processing. (The SETLL operation in the RPG/400<sup>®</sup> language
and the START operation in the COBOL/400<sup>®</sup> language are examples of
file positioning operations.) Even though the high-level language program
cannot automatically request sequential-only processing, you can request it
using the SEQONLY parameter on the Override with Database File (OVRDBF) command.</div>
</div>
<p>If you specify sequential-only processing, you can also specify the number
of records to be moved as one unit between the system database main storage
area and the job's internal data main storage area. If you do not specify
the sequential-only number of records to be moved, the system calculates a
number based on the number of records that fit into a 4096-byte buffer.</p>
<div class="p">The system also provides you a way to control the number of records that
are moved as a unit between auxiliary storage and main storage. If you are
reading the data in the file in the same order as the data is physically stored,
you can improve the performance of your job using the NBRRCDS parameter on
the OVRDBF command. <div class="note"><span class="notetitle">Note:</span> Sequential-only processing should not be used with
a keyed sequence access path file unless the physical data is in the same
order as the access path. SEQONLY(*YES) processing might cause poor application
performance until the physical data is reorganized into the access path's
order.</div>
</div>
</div>
<div>
<ul class="ullinks">
<li class="ulchildlink"><strong><a href="rbafoocons.htm">Open considerations for sequential-only processing</a></strong><br />
The considerations apply for opening files when sequential-only processing is specified. If the system determines that sequential-only processing is not allowed, a message is sent to the program to indicate that the request for sequential-only processing is not being accepted; however, the file is still opened for processing.</li>
<li class="ulchildlink"><strong><a href="rbafoicons.htm">Input/output considerations for sequential-only processing</a></strong><br />
The considerations apply for input/output operations on files when sequential-only processing is specified.</li>
<li class="ulchildlink"><strong><a href="rbafoclosc.htm">Close considerations for sequential-only processing</a></strong><br />
The considerations apply for closing files when sequential-only processing is specified.</li>
</ul>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafopreopn.htm" title="These topics describe the file processing parameters and other methods or considerations that can affect database file processing.">Database file processing: Runtime considerations</a></div>
</div>
</div>
</body>
</html>