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

55 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="Read by relative record number operation" />
<meta name="abstract" content="This operation positions the file to the record in the arrival sequence access path that is identified by the relative record number, and gets that record." />
<meta name="description" content="This operation positions the file to the record in the arrival sequence access path that is identified by the relative record number, and gets that record." />
<meta name="DC.subject" content="reading, database record, methods, arrival sequence access path" />
<meta name="keywords" content="reading, database record, methods, arrival sequence access path" />
<meta name="DC.Relation" scheme="URI" content="rbafordbra.htm" />
<meta name="DC.Relation" scheme="URI" content="rbaforsdlt.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="rbafordroasap" />
<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>Read by relative record number operation</title>
</head>
<body id="rbafordroasap"><a name="rbafordroasap"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Read by relative record number operation</h1>
<div><p>This operation positions the file to the record in the arrival
sequence access path that is identified by the relative record number, and
gets that record. </p>
<p>The relative record number must identify an active record and must be less
than or equal to the largest active relative record number in the member.
This operation also reads the record in the arrival sequence access path identified
by the current file position plus or minus a specified number of records.
(The CHAIN statement in the RPG/400<sup>®</sup> language and the READ statement in the COBOL/400<sup>®</sup> language
are examples of this operation.) Special consideration should be given to
creating or changing a file to reuse deleted records if the file is processed
by relative record processing.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafordbra.htm" title="These read operations are allowed if the file was defined with an arrival sequence access path or with a keyed sequence access path with the ignore-keyed-sequence-access-path option specified on the Open Database File (OPNDBF) or the Open Query File (OPNQRYF) command.">Read database records using an arrival sequence access path</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbaforsdlt.htm" title="Sometimes you might want to reuse deleted records for your database files. In this case, you can use the REUSEDLT parameter.">Reuse deleted records</a></div>
</div>
</div>
</body>
</html>