<?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 in check pending status" /> <meta name="abstract" content="When the parent or dependent file has an established constraint relationship that is 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 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="rbal3coppen" /> <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 in check pending status</title> </head> <body id="rbal3coppen"><a name="rbal3coppen"><!-- --></a> <!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">Copy files in check pending status</h1> <div><p>When the parent or dependent file has an established constraint relationship that is in check-pending status, the rules described in this topic apply.</p> <ul><li>If the from-file has an established constraint relationship in check pending, data access is restricted. If the from-file is a parent file, the command can read and copy data to the to-file. If the from-file is a dependent file, the command cannot read data to the to-file, and therefore cannot copy the data to the to-file.</li> <li>If the to-file has an established constraint relationship in check pending status, data access is restricted. If the to-file is a parent file, you can add new records (you can specify MBROPT(*ADD)). If the to-file is a parent file, you cannot clear the file (you cannot specify MBROPT(*REPLACE)). If the to-file is a dependent file, you cannot perform the copy regardless of which MBROPT parameter keyword you use.</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 will be 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>