iSeries Access Family copy command considerations

The iSeries™ CL command Copy from Personal Computer Document (CPYFRMPCD) used in iSeries Access Family can be used to copy data from a document located either on an iSeries server to a database file member located on the same iSeries server or on a remote iSeries server 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 iSeries server or a remote iSeries server (using DDM) to a document on the local iSeries server. The remote file can be on a target iSeries server or a non-iSeries server. 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 iSeries physical file.
  • FROMFILE parameter in the Copy to PC Document (CPYTOPCD) command, to copy a member from an iSeries database file to a personal computer document in a folder.
The following restrictions apply to the CL copy commands for iSeries Access Family:
  • For the CPYFRMPCD command, a remote file cannot be created on the target server (whether it is an iSeries server or a non-iSeries server). The remote file must already exist before the personal computer document data can be copied to it. However, if the target is an iSeries server 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 iSeries 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.