92 lines
7.0 KiB
HTML
92 lines
7.0 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="Copy files" />
|
|
<meta name="abstract" content="The copy function on iSeries can copy physical and logical files, copy members and records, copy complex objects, and copy files between servers." />
|
|
<meta name="description" content="The copy function on iSeries can copy physical and logical files, copy members and records, copy complex objects, and copy files between servers." />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3workwith.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3copyfileover.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3copypflf.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3copyto.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3records.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3selrecords.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3prtrecords.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3selmem.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3copydbmbrfmt.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3sequence.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3copycomplex.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3copyserver.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3ft.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rbal3copyfile" />
|
|
<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</title>
|
|
</head>
|
|
<body id="rbal3copyfile"><a name="rbal3copyfile"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Copy files</h1>
|
|
<div><p>The copy function on <span class="keyword">iSeries™</span> can
|
|
copy physical and logical files, copy members and records, copy complex objects,
|
|
and copy files between servers.</p>
|
|
<p>You can use the copy function to move data between device files, database
|
|
files, or both device and database files with the <span class="keyword">iSeries</span> field-level
|
|
sensitive copy function. This function allows you to rearrange, enlarge, or
|
|
drop any of the fields. You can also define database files.</p>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="rbal3copyfileover.htm">Copy files: overview</a></strong><br />
|
|
You can use the copy function to move data between device files,
|
|
between database files (including distributed <span class="keyword">DB2<sup>®</sup> Multisystem</span> files),
|
|
or between device and database files.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3copypflf.htm">Copy physical or logical files</a></strong><br />
|
|
To copy a physical or logical file (the <em>from-file</em>) on <span class="keyword">iSeries</span> into another physical file (the <em>to-file</em>),
|
|
which does not yet exist, you can use the CPYF command.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3copyto.htm">Create the to-file (CRTFILE parameter)</a></strong><br />
|
|
To copy a physical or logical file when no to-file exists to receive the data, you can create the to-file by specifying CRTFILE(*YES).</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3records.htm">Add, replace, and update records (MBROPT parameter)</a></strong><br />
|
|
Many <span class="keyword">iSeries</span> copy
|
|
commands allows you to add or replace existing data in the to-file specifying
|
|
different attributes on the MBROPT paramete.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3selrecords.htm">Select the records to copy</a></strong><br />
|
|
You can use parameters on the copy commands to select only the specific records that you want to copy.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3prtrecords.htm">Print records (PRINT, OUTFMT, and TOFILE(*PRINT) parameters)</a></strong><br />
|
|
You can print a list of all records copied, all records excluded, or all records causing ERRLVL output errors. You do this by specifying PRINT special values on a copy command.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3selmem.htm">Select members to copy</a></strong><br />
|
|
<span class="keyword">iSeries</span> gives you
|
|
several options for copying file members.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3copydbmbrfmt.htm">Copying between different database record formats (FMTOPT parameter)</a></strong><br />
|
|
When you copy from a database file to a database file, you must use the FMTOPT parameter if the record formats are not identical or if the files are different types (source or data). If either file is a device file or inline data file, the FMTOPT parameter does not apply. The records are truncated or padded with blanks or zeros when record lengths are different. A message is sent if the records are truncated.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3sequence.htm">Add or changing source file sequence number and date fields (SRCOPT and SRCSEQ Parameters)</a></strong><br />
|
|
You can perform additions or changes to sequence number fields and date fields sequence number and date fields when you are copying files.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3copycomplex.htm">Copy complex objects</a></strong><br />
|
|
You can copy from and to files that contain user-defined functions (UDFs), user-defined types (UDTs), DataLinks (DLs), large objects (LOBs), identity columns, or ROWIDs.</li>
|
|
<li class="ulchildlink"><strong><a href="rbal3copyserver.htm">Copy between different servers</a></strong><br />
|
|
You can use the CPYFRMIMPF and CPYTOIMPF commands discussed in
|
|
this topic to import (load) or export (unload) data to and from <span class="keyword">iSeries</span>.</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3workwith.htm" title="This topic describes the various tasks that can be used to ensure that files are used effectively.">Work with database files</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="rbal3ft.htm">File types</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |