ibm-information-center/dist/eclipse/plugins/i5OS.ic.ddm_5.4.0.1/rbae5apaex2e.htm

62 lines
4.1 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="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="reference" />
<meta name="DC.Title" content="DDM example 2: Copy a file" />
<meta name="abstract" content="After performing the first task in Example 2, you decide you want to copy the current level of the CUSTMAST file (in Philadelphia) to the server in Chicago so you can bring the CUSTMST2 file up to date." />
<meta name="description" content="After performing the first task in Example 2, you decide you want to copy the current level of the CUSTMAST file (in Philadelphia) to the server in Chicago so you can bring the CUSTMST2 file up to date." />
<meta name="DC.subject" content="copying, file, example, system, iSeries, source and target in same job" />
<meta name="keywords" content="copying, file, example, system, iSeries, source and target in same job" />
<meta name="DC.Relation" scheme="URI" content="rbae5apaex2.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1999, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbae5apaex2e" />
<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>DDM example 2: Copy a file</title>
</head>
<body id="rbae5apaex2e"><a name="rbae5apaex2e"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">DDM example 2: Copy a file</h1>
<div><p>After performing the first task in Example 2, you decide you want
to copy the current level of the CUSTMAST file (in Philadelphia) to the server
in Chicago so you can bring the CUSTMST2 file up to date.</p>
<div class="section"><p>This example assumes that the CUSTMST2 file already exists in
Chicago.</p>
</div>
<div class="section"><p>The following commands can be used to copy the CUSTMAST file from
the Philadelphia server to the CUSTMST2 file on the Chicago server. (These
commands are issued on the server in Philadelphia.)</p>
<pre>CRTDDMF FILE(PHILLY/COPYMAST) RMTFILE(*NONSTD 'CUSTMST2.CHICAGO')
RMTLOCNAME(CHIC)
CPYF FROMFILE(PGMLIB/CUSTMAST) TOFILE(PHILLY/COPYMAST)
MBROPT(*REPLACE)</pre>
</div>
<div class="section"> <div class="note"><span class="notetitle">Note:</span> One might assume that, as an alternative method, you can create
a DDM file on the source server, use the <span class="cmdname">SBMRMTCMD</span> command
to submit a <span class="cmdname">Create DDM File (CRTDDMF)</span> command to the target
server, and then <em>attempt</em> to use the newly created target DDM file with
another <span class="cmdname">SBMRMTCMD</span> command to perform the copy function
back to the original server. However, that method <em>will not work</em>, because <em>an <span class="keyword">iSeries™ server</span> cannot be both a source and
target server within the same job</em>.</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbae5apaex2.htm" title="This second example shows how multiple locations in a customer's business can process the same order entry application using DDM.">DDM example 2: ORDERENT application</a></div>
</div>
</div>
</body>
</html>