Copy a file

You can copy a file using the copy a table operation in iSeries™ Navigator or using the Copy File (CPYF) command.

Copy a file (table) using iSeries Navigator

Copying a table to a different schema creates two instances of the same table. To copy a table to a different schema, follow these steps:
  1. From iSeries Navigator, expand the system you want to use.
  2. Expand Databases.
  3. Expand the database and schema that you want to work with.
  4. Click the Tables container.
  5. Right-click the table and click Copy.
  6. Right-click the schema you want to copy the table to and click Paste.

Distributed data management (DDM) is used by iSeries Navigator to actually move or copy the table. If the operating system on the source system is running Version 4 Release 4 or later and if the operating system on the target system is running Version 4 Release 2 or later, the operation is performed using DDM over TCP/IP. Otherwise the operation is performed using DDM over SNA. For a move or copy operation using DDM over SNA, the names by which iSeries Access knows the systems must be the same as the remote location names specified in the APPC or APPN device descriptions used by DDM. For a move or copy operation using DDM over TCP/IP, TCP communications must be enabled between the systems. For TCP/IP, it is important to note that TCP/IP must be enabled between the systems as they are known to iSeries Access.

Copy a file using the Copy File (CPYF) command

The Copy File (CPYF) command copies all or part of a database or external device file to a database or external device file.

Related concepts
Control language (CL)
Related reference
Copy File (CPYF) command