Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Note: It is possible for files with large record formats (many fields) to have the<br />
same format level identifiers even though their formats may be slightly<br />
different. Problems can occur when copying these files if the record format<br />
names of the from-file and the to-file are the same. When copying such files<br />
using FMTOPT(*NONE) or FMTOPT(*MAP), it is recommended that the<br />
record format names of the from-file and the to-file be different.<br />
Table 13 summarizes the database-to-database copy operations for each value on<br />
the FMTOPT parameter.<br />
Table 13. Database-to-Database Copy Operations<br />
FMTOPT<br />
Parameter<br />
Values<br />
(see note<br />
4)<br />
ALL Field Names in<br />
From-and To-<strong>File</strong>s Are<br />
the Same (like-named)<br />
Attributes and relative<br />
order also the same (see<br />
note 1)<br />
Database <strong>File</strong> Record Formats<br />
SOME Field Names in<br />
From-and To-<strong>File</strong>s Are<br />
the Same<br />
Attributes and relative<br />
order not the same (see<br />
note 1)<br />
NO Field Names in Either <strong>File</strong> Are the Same<br />
Like-named<br />
fields have<br />
identical<br />
attributes and<br />
relative order<br />
(see note 1)<br />
Not all<br />
like-named<br />
fields have<br />
identical<br />
attributes and<br />
relative order<br />
(see note 1)<br />
*NONE Complete copy Command ends Command ends Command ends Command<br />
ends<br />
*DROP Complete copy (value<br />
ignored)<br />
*MAP (see<br />
note 2)<br />
*MAP and<br />
*DROP<br />
(see note<br />
2)<br />
Complete copy (value<br />
ignored)<br />
Complete copy (value<br />
ignored)<br />
*NOCHK Complete copy (value<br />
ignored)<br />
108 <strong>File</strong> <strong>Management</strong> V4R5<br />
Command ends If there are<br />
extra fields in<br />
the from-file,<br />
they are<br />
dropped, all<br />
others are<br />
copied. If there<br />
are extra fields<br />
in the to-file,<br />
the command<br />
ends. If there<br />
are extra fields<br />
in the from-file<br />
and in the<br />
to-file, the<br />
command ends.<br />
Complete copy<br />
(corresponding fields are<br />
mapped)<br />
Complete copy<br />
(corresponding fields are<br />
mapped)<br />
Command ends Command<br />
ends<br />
If there are extra fields in the<br />
from-file, the command ends. If<br />
there are extra fields in the to-file,<br />
they are filled, and the<br />
like-named fields are mapped. If<br />
there are extra fields in the to-file<br />
and the from-file, the command<br />
ends.<br />
Extra fields in the from-file are<br />
dropped; like-named fields are<br />
mapped; extra fields in the to-file<br />
are filled.<br />
Command<br />
ends<br />
Command<br />
ends<br />
Complete copy (direct data transfer disregarding fields) (see note 3)