IBM i Access Family copy command considerations

The IBM® i CL command Copy from Personal Computer Document (CPYFRMPCD) used in IBM i Access Family can be used to copy data from a document located either on an IBM i to a database file member located on the same IBM i or on a remote IBM i using DDM.

The CL command Copy to Personal Computer Document (CPYTOPCD) can be used to copy data from a database file member on a local IBM i or a remote IBM i (using DDM) to a document on the local IBM i. The remote file can be on a target IBM i or a non-IBM i. To use these commands, specify the name of a DDM file on the:
  • TOFILE parameter in the Copy from PC Document (CPYFRMPCD) command, to copy a personal computer document to an IBM i physical file.
  • FROMFILE parameter in the Copy to PC Document (CPYTOPCD) command, to copy a member from an IBM i database file to a personal computer document in a folder.
The following restrictions apply to the CL copy commands for IBM i Access Family:
  • For the CPYFRMPCD command, a remote file cannot be created on the server system (whether it is an IBM i or a non-IBM i). The remote file must already exist before the personal computer document data can be copied to it. However, if the target is an IBM i or a System/38, a new member can be created for the remote file before the personal computer document data is copied to that file member.
  • The CPYFRMPCD and CPYTOPCD commands are IBM i CL commands and cannot be entered at the DOS prompt from the personal computer.

For more information on the CPYTOPCD and the CPYFRMPCD commands, see the online help information.