73 lines
4.7 KiB
HTML
73 lines
4.7 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="copyright" content="(C) Copyright IBM Corporation 2005" />
|
|
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
|
|
<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="Copy files not in check-pending status" />
|
|
<meta name="abstract" content="When the parent or dependent file has an established constraint relationship that is not in check-pending status, the rules described in this topic apply." />
|
|
<meta name="description" content="When the parent or dependent file has an established constraint relationship that is not in check-pending status, the rules described in this topic apply." />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3preerr.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3precop.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rbal3precfil" />
|
|
<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>Copy files not in check-pending status</title>
|
|
</head>
|
|
<body id="rbal3precfil"><a name="rbal3precfil"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Copy files not in check-pending status</h1>
|
|
<div><p>When the parent or dependent file has an established constraint
|
|
relationship that is not in check-pending status, the rules described in
|
|
this topic apply.</p>
|
|
<ul><li>If the from-file has an established constraint relationship, then you
|
|
can copy all of the records from it whether it is a parent or dependent file.</li>
|
|
<li>If the to-file has an established or enabled constraint relationship,
|
|
then the following rules apply to keep the constraint relationship from entering
|
|
check-pending status: <ul><li>A parent file cannot have its member cleared of records.</li>
|
|
<li>A parent file cannot have more than one parent key value in the parent
|
|
key access path of the same value (key must remain unique). That is, if the
|
|
to-file is a parent file in a constraint relationship, then the copy does
|
|
not allow duplicate key records to be copied into it.</li>
|
|
<li>A dependent file's foreign key values that are not null must always have
|
|
a corresponding parent key value. That is, if the to-file is a dependent file
|
|
in a constraint relationship, the copy operation does not allow non-null foreign
|
|
key records that do not have a corresponding parent key record to be copied
|
|
into the dependent file.</li>
|
|
</ul>
|
|
<p>The copy operation ensures that the data in the parent or dependent
|
|
to-file is not damaged. Records can be copied to the to-file provided they
|
|
do not cause the constraint relationship to go into check-pending status.
|
|
If a user attempts to copy a record that does not meet the constraint relationship
|
|
rules, the copy operation will end unless the ERRLVL parameter has been specified
|
|
(<a href="../cl/cpyf.htm">CPYF</a> and <a href="../cl/cpyfrmqryf.htm">CPYFRMQRYF</a> commands
|
|
only) with a value greater than zero.</p>
|
|
</li>
|
|
</ul>
|
|
<p>To circumvent the above rules, you can disable the involved constraints
|
|
before the copy operation, perform the copy, and then re-enable the constraints.
|
|
However, the file is in check-pending status if constraint rules are still
|
|
not met.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3preerr.htm" title="You can prevent many copy errors when you plan for certain conditions and situations ahead of time.">Prevent errors when copying files</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="rbal3precop.htm" title="A constraint relationship is a mechanism to ensure data integrity between a dependent file and a parent file. You need to pay attention to the constraint relationship when copying files.">Prevent copy errors that result from constraint relationships</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |