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

59 lines
4.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="Determine if duplicate keys exist" />
<meta name="abstract" content="The set of keyed sequence access paths used to determine if the key is a duplicate key differs depending on the input/output (I/O) operation that is performed. You can determine if duplicate keys exist using the DUPKEYCHK parameter." />
<meta name="description" content="The set of keyed sequence access paths used to determine if the key is a duplicate key differs depending on the input/output (I/O) operation that is performed. You can determine if duplicate keys exist using the DUPKEYCHK parameter." />
<meta name="DC.subject" content="determining, duplicate key values, duplicate key value, DUPKEYCHK (Duplicate Key Check) parameter, Duplicate Key Check (DUPKEYCHK) parameter, parameter, DUPKEYCHK (Duplicate Key Check)" />
<meta name="keywords" content="determining, duplicate key values, duplicate key value, DUPKEYCHK (Duplicate Key Check) parameter, Duplicate Key Check (DUPKEYCHK) parameter, parameter, DUPKEYCHK (Duplicate Key Check)" />
<meta name="DC.Relation" scheme="URI" content="rbafoprocop.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="rbafodupkey" />
<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>Determine if duplicate keys exist</title>
</head>
<body id="rbafodupkey"><a name="rbafodupkey"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Determine if duplicate keys exist</h1>
<div><p>The set of keyed sequence access paths used to determine if the
key is a duplicate key differs depending on the input/output (I/O) operation
that is performed. You can determine if duplicate keys exist using the DUPKEYCHK
parameter.</p>
<p>For input operations (reads), the keyed sequence access path used is the
one that the file is opened with. Any other keyed sequence access path that
can exist over the physical file are not considered. Also, any records in
the keyed sequence access path omitted because of select/omit specifications
are not considered when deciding if the key operation is a duplicate.</p>
<p>For output (write) and update operations, all nonunique keyed sequence
access paths of *IMMED maintenance that exist over the physical file are searched
to determine if the key for this output or update operation is a duplicate.
Only keyed sequence access paths that have *REBLD and *DLY maintenance
are considered if the access paths are actively open over the file at feedback
time.</p>
<p>When you process a keyed file with a COBOL program, you can specify duplicate
key feedback to be returned to your program through the COBOL language, or
on the Open Database File (OPNDBF) or Open Query File (OPNQRYF) command. However,
in COBOL, having duplicate key feedback returned can cause a decline in performance.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafoprocop.htm" title="These topics describe several runtime processing options.">File processing options</a></div>
</div>
</div>
</body>
</html>