48 lines
3.3 KiB
HTML
48 lines
3.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="Specify *REPLACE when copying files" />
|
|
<meta name="abstract" content="By specifying *REPLACE, you essentially clear the member. The copied records are the only records in the member when the operation completes. You must have authority to clear the member in order to specify MBROPT(*REPLACE)." />
|
|
<meta name="description" content="By specifying *REPLACE, you essentially clear the member. The copied records are the only records in the member when the operation completes. You must have authority to clear the member in order to specify MBROPT(*REPLACE)." />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3records.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rbal3replace" />
|
|
<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>Specify *REPLACE when copying files</title>
|
|
</head>
|
|
<body id="rbal3replace"><a name="rbal3replace"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Specify *REPLACE when copying files</h1>
|
|
<div><p>By specifying *REPLACE, you essentially clear the member. The copied
|
|
records are the only records in the member when the operation completes. You
|
|
must have authority to clear the member in order to specify MBROPT(*REPLACE).</p>
|
|
<p>For copy commands other than the <a href="../cl/cpyfrmqryf.htm">CPYFRMQRYF</a> command, when you specify *REPLACE, copy command
|
|
processing fails if the from-file does not contain any records. When you specify
|
|
*REPLACE on the <a href="../cl/cpyfrmqryf.htm">CPYFRMQRYF</a> command,
|
|
the to-file member will be cleared even if the open query file contains no
|
|
records.</p>
|
|
<p>*REPLACE is the default value for the <a href="../cl/cpysrcf.htm">CPYSRCF</a> command. All other copy commands have the default
|
|
value of *NONE; however, *NONE is valid only for copying to a device file.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3records.htm" title="Many iSeries copy commands allows you to add or replace existing data in the to-file specifying different attributes on the MBROPT paramete.">Add, replace, and update records (MBROPT parameter)</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |