52 lines
3.4 KiB
HTML
52 lines
3.4 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="Creating a duplicate to-file member" />
|
||
|
<meta name="abstract" content="You can create duplicates to-file members without doing the copy file action again." />
|
||
|
<meta name="description" content="You can create duplicates to-file members without doing the copy file action again." />
|
||
|
<meta name="DC.subject" content="copying file, creating, duplicate to-file member example, to-file member example, creating duplicate, example, creating duplicate to-file member" />
|
||
|
<meta name="keywords" content="copying file, creating, duplicate to-file member example, to-file member example, creating duplicate, example, creating duplicate to-file member" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbal3bcfuc.htm" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rbal3tofil" />
|
||
|
<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> Creating a duplicate to-file member</title>
|
||
|
</head>
|
||
|
<body id="rbal3tofil"><a name="rbal3tofil"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1"> Creating a duplicate to-file member</h1>
|
||
|
<div><p>You can create duplicates to-file members without doing the copy
|
||
|
file action again.</p>
|
||
|
<div class="p">When your application requires an exact duplicate of the records in the
|
||
|
to-file member (if either the from-file is empty or contains data), an alternative
|
||
|
solution is to use the <a href="../cl/clrpfm.htm">Clear
|
||
|
Physical File Member (CLRPFM</a>) command: <pre>CLRPFM FILE(X) MBR(XYZ)
|
||
|
CPYF FROMFILE(Y) TOFILE(X) TOMBR(XYZ) +
|
||
|
MBROPT(*ADD)</pre>
|
||
|
</div>
|
||
|
<p>Because MBROPT(*ADD) is specified, the <a href="../cl/cpyf.htm">CPYF</a> command completes normally even if there is no data
|
||
|
in file Y. MBR(XYZ) in file X contains an exact duplicate of the records in
|
||
|
the member in file Y.</p>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3bcfuc.htm" title="You can copy from a physical or logical database file, open query file, diskette file, tape file, or inline data file. The to-file can be a physical database file, diskette file, tape file, program-described printer file, or *PRINT.">Copy files: basic functions</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|