Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Using the Copy From Import <strong>File</strong> (CPYFRMIMPF) command to<br />
copy between different systems<br />
The Copy From Import <strong>File</strong> (CPYFRMIMPF) commandmaps or parses the data<br />
from (″import″) an import file to the to-file<br />
For more information on the CPYFRMIMPF command, see “Notes on the<br />
CPYFRMIMPF command” and “Restrictions on the CPYFRMIMPF command” on<br />
page 141. Depending on what type of file the import file is, there are different steps<br />
to use when running CPYFRMIMPF. See the following topics for more information<br />
on the appropriate steps:<br />
v “(CPYFRMIMPF) Importing data to the AS/400 when the from-file is a database<br />
file or DDM file” on page 141<br />
v “(CPYFRMIMPF) Importing data to AS/400 when the import file is a stream<br />
file” on page 142<br />
The CPYFRMIMPF command also supports a parallel data loader to copy<br />
information from an import file to a to-file using multiple jobs during the copy. To<br />
use multiple jobs, the system must have the Symmetric Multiprocessing Product<br />
(SMP). See “Parallel data loader support to use with the CPYFRMIMPF command”<br />
on page 143 for more information on Parallel Data Loader support.<br />
Using the Copy To Import <strong>File</strong> (CPYTOIMPF) command to<br />
copy between different systems<br />
140 <strong>File</strong> <strong>Management</strong> V4R5<br />
The Copy To Import <strong>File</strong> (CPYTOIMPF) command copies the data from the<br />
from-file to an import file. You can then move the import file (or file to be<br />
exported) to your platform by any method you choose, such as TCP/IP file<br />
transfer (text transfer), CA/400 support (file transfer, ODBC), or CPYTOTAP (copy<br />
to tape file) command. Your system then handles the data from the import file in<br />
one of two ways. See “Handling data from the import file” on page 143 for more<br />
information.<br />
The user can also specify a stream file, and the CPYTOIMPF will copy the data to<br />
the stream file. For more information on the CPYTOIMPF command, see “Notes on<br />
the CPYTOIMPF command” on page 146.<br />
Notes on the CPYFRMIMPF command<br />
The authority needed to perform the copy using the CPYFRMIMPF command is<br />
similar to the authority requirements for all other copies.<br />
The from-file can be any of the following:<br />
v A stream file<br />
v A DDM file<br />
v A tape file<br />
v A source physical file<br />
v A distributed physical file<br />
v A program described physical file<br />
v A single format logical file<br />
v An externally described physical file with one field. The one field cannot be a<br />
numeric data type.<br />
The to-file can be any of these: