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

70 lines
5.2 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="Use the force-end-of-data operation" />
<meta name="abstract" content="The force-end-of-data (FEOD) operation allows you to force all changes that were made to a file by your program to auxiliary storage. It also allows you to position the read operation to either the beginning or the end of a file if the file is open for input operations." />
<meta name="description" content="The force-end-of-data (FEOD) operation allows you to force all changes that were made to a file by your program to auxiliary storage. It also allows you to position the read operation to either the beginning or the end of a file if the file is open for input operations." />
<meta name="DC.subject" content="Force-End-Of-Data (FEOD) operation, FEOD (Force-End-Of-Data) operation" />
<meta name="keywords" content="Force-End-Of-Data (FEOD) operation, FEOD (Force-End-Of-Data) operation" />
<meta name="DC.Relation" scheme="URI" content="rbafoandbr.htm" />
<meta name="DC.Relation" scheme="URI" content="rbaforzahftra.htm" />
<meta name="DC.Relation" scheme="URI" content="rbaforzahfrca.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="rbafofeodop" />
<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>Use the force-end-of-data operation </title>
</head>
<body id="rbafofeodop"><a name="rbafofeodop"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Use the force-end-of-data operation </h1>
<div><p>The force-end-of-data (FEOD) operation allows you
to force all changes that were made to a file by your program to auxiliary
storage. It also allows you to position the read operation to either the beginning
or the end of a file if the file is open for input operations.</p>
<p>Normally, the system determines when to force changes to auxiliary storage.
However, you can use the FEOD operation to ensure that all changes are forced
to auxiliary storage.</p>
<p>*START sets the beginning or starting position in the database file member
currently open to just before the first record in the member (the first sequential
read operation reads the first record in the current member). If MBR(*ALL)
processing is in effect for the Override with Database File (OVRDBF) command,
a read previous operation gets the last record in the previous member. If
a read previous operation is done and the previous member does not exist,
the end of file message (CPF5001) is sent. *END sets the position in the database
file member currently open to just after the last record in the member (a
read previous operation reads the last record in the current member). If MBR(*ALL)
processing is in effect for the OVRDBF command, a read next operation gets
the first record in the next member. If a read next operation is done and
the next member does not exist, the end of file message (CPF5001) occurs.</p>
<p>If the file has a delete trigger, the force-end-of-data operation is not
allowed. If the file is part of a referential parent relationship, the FEOD
operation is not allowed. </p>
<p>See your high-level language topic collection for more information about
the FEOD operation (some high-level languages do not support the FEOD operation).</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafoandbr.htm" title="The write operation allows you to add a new record to a physical database file member.">Add database records</a></div>
</div>
<div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="rbaforzahftra.htm" title="A trigger is a set of actions that run automatically when a specified change or read operation is performed on a specified database file. On iSeries, you define a set of trigger actions in any supported high-level language.">Trigger automatic events in your database</a></div>
<div><a href="rbaforzahfrca.htm" title="These topics discuss how to use referential constraints in your database to ensure that it contains only valid data.">Ensure data integrity with referential constraints</a></div>
</div>
</div>
</body>
</html>