71 lines
4.3 KiB
HTML
71 lines
4.3 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="Prevent allocation errors when copying files" />
|
|
<meta name="abstract" content="iSeries places locks on the from-file and the to-file when you copy files. To prevent allocation errors when copying files, you can place stronger locks on those files." />
|
|
<meta name="description" content="iSeries places locks on the from-file and the to-file when you copy files. To prevent allocation errors when copying files, you can place stronger locks on those files." />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3preerr.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3reasons.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rbal3preall" />
|
|
<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>Prevent allocation errors when copying files</title>
|
|
</head>
|
|
<body id="rbal3preall"><a name="rbal3preall"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Prevent allocation errors when copying files</h1>
|
|
<div><p><span class="keyword">iSeries™</span> places locks
|
|
on the from-file and the to-file when you copy files. To prevent allocation
|
|
errors when copying files, you can place stronger locks on those files.</p>
|
|
<p>When a database file is copied, each from-file member is allocated with
|
|
a shared-for-read (*SHRRD) lock state. When a device file is copied, the
|
|
copy command allocates it with a shared-for-read (*SHRRD) lock state. The
|
|
copy command allocates the member only while it copies it. A shared-for-read
|
|
lock state lets other users read and update the file while you are copying
|
|
it.</p>
|
|
<p>Generally, the member being copied to is allocated with a shared-for-update
|
|
(*SHRUPD) lock state. However, if you specify MBROPT(*REPLACE), the command
|
|
allocates the member you are copying to with an exclusive (*EXCL) lock state,
|
|
and the records in the to-file are removed</p>
|
|
<div class="p">When you are copying one physical file to another, you can place stronger
|
|
locks on the members to allow internal system functions to perform the copy. <ul><li>The command can allocate the from-file member with an exclusive-allow-read
|
|
(*EXCLDRD) lock state.</li>
|
|
<li>The command can allocate the to-file member with an exclusive (*EXCL)
|
|
lock state.</li>
|
|
</ul>
|
|
</div>
|
|
<p>The command requires these stronger locks depending on the type of copy
|
|
you perform. If you cannot get these locks, run the copy command and specify
|
|
a value of 1 (or any valid value other than 0) on the ERRLVL parameter. These
|
|
values do not require the stronger locks.</p>
|
|
<p>There are many reasons for allocation errors when you copy files.
|
|
For instance, you should not use functions that touch the to-file during the
|
|
copy.</p>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rbal3reasons.htm">Reasons for allocation errors when copying files</a></strong><br />
|
|
</li>
|
|
</ul>
|
|
|
|
<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>
|
|
</body>
|
|
</html> |