Copy commands with DDM

This topic describes the DDM implications of these CL commands.

These commands can be used to copy data or source between files on local and remote servers. You specify with these commands which file to copy from and which file to copy to. The following table shows you what database and device files can be copied between local and remote servers.

Table 1. Copy database and device files
From file To file
Local or remote database files Local or remote database files
Local or remote database files Local device files
Local device files Local or remote database files

A DDM file is considered a device file that refers to a remote database file. Consider the following items when using these copy commands with DDM:

If the TOFILE parameter is a DDM file that refers to a file that does not exist, CPYF creates the file if CRTFILE(*YES) is specified. Listed here are special considerations for remote files created with the CPYF or CPYFRMQRYF commands: