74 lines
5.2 KiB
HTML
74 lines
5.2 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="task" />
|
|
<meta name="DC.Title" content="Importing data to the iSeries when the from-file is a database file or DDM file" />
|
|
<meta name="abstract" content="You can use the Copy from Import File (CPYFRMIMPF) command to import data from a database file or DDM file." />
|
|
<meta name="description" content="You can use the Copy from Import File (CPYFRMIMPF) command to import data from a database file or DDM file." />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3usingcpyfrm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3usingcpyfrm.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3par.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rbal3imp" />
|
|
<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>Importing data to the iSeries when
|
|
the from-file is a database file or DDM file</title>
|
|
</head>
|
|
<body id="rbal3imp"><a name="rbal3imp"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Importing data to the <span class="keyword">iSeries</span> when
|
|
the from-file is a database file or DDM file</h1>
|
|
<div><p>You can use the Copy from Import File (CPYFRMIMPF) command to import
|
|
data from a database file or DDM file.</p>
|
|
<div class="section"> <p>To import data from a database file or DDM file,
|
|
follow these steps:</p>
|
|
</div>
|
|
<ol><li class="stepexpand"><span>Create an import file for the data that you are going to copy to
|
|
a DB2<sup>®</sup> for <span class="keyword">iSeries™</span> externally described file.</span> The import file can be a database source file, an externally described
|
|
database file which has one field, or a program described physical file. If
|
|
the file has one field, the data type must be CHARACTER, IGC OPEN, IGC EITHER,
|
|
IGC ONLY, GRAPHIC, fixed or variable length. The record length of the import
|
|
file should be long enough to contain the longest record of the file being
|
|
sent to the server, including any delimiters.</li>
|
|
<li class="stepexpand"><span>Send the data to the import file or from-file.</span> Sending
|
|
the data into the import file causes the necessary ASCII to EBCDIC data conversions
|
|
to occur. There are several ways to import the data such as: <ul><li>TCP/IP file transfer (text transfer)</li>
|
|
<li>CA/400 support (file transfer, ODBC)</li>
|
|
<li><a href="../cl/cpyfrmtap.htm">CPYFRMTAP</a> command
|
|
(copy from tape file)</li>
|
|
</ul>
|
|
</li>
|
|
<li class="stepexpand"><span>Create a DB2 for <span class="keyword">iSeries</span> externally
|
|
described database file, or DDM file, which will contain the resultant data
|
|
of the import file.</span></li>
|
|
<li class="stepexpand"><span>Use the <a href="../cl/cpyfrmimpf.htm">CPYFRMIMPF</a> command
|
|
to copy (translate or parse the records) from the import file to the to-file.</span> For importing large files, you can choose to have the import file split-up
|
|
into multiple parts so that each part can be processed in parallel on an N-way
|
|
multi-processor server.</li>
|
|
</ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3usingcpyfrm.htm" title="The Copy From Import File (CPYFRMIMPF) command maps or parses the data from ("import") an import file to the to-file.">Use the Copy From Import File (CPYFRMIMPF) command to copy between different servers</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="rbal3usingcpyfrm.htm" title="The Copy From Import File (CPYFRMIMPF) command maps or parses the data from ("import") an import file to the to-file.">Use the Copy From Import File (CPYFRMIMPF) command to copy between different servers</a></div>
|
|
<div><a href="rbal3par.htm" title="The Copy From Import File (CPYFRMIMPF) supports copying the data in parallel from an import file to a to-file using multiple jobs during the copy. This allows you to copy data files from other platforms into a to-file quickly and easily. This is especially useful for those who use data warehousing. To use multiple jobs, your server must have the Symmetric Multiprocessing Product (SMP).">Parallel data loader support to use with the CPYFRMIMPF command</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |