Copy to and from source files using the Copy Source File (CPYSRCF) command

The Copy Source File (CPYSRCF) command is designed to operate with database source files. Although it is similar in function to the Copy File (CPYF) command, the CPYSRCF command provides defaults that are normally used for copying a source file.

For example, it has a default that assumes the TOMBR parameter is the same as the FROMMBR parameter and that any TOMBR records are always replaced. The CPYSRCF command also supports a unique printing format when TOFILE(*PRINT) is specified. Therefore, when you are copying database source files, you might want to use the CPYSRCF command.

The CPYSRCF command automatically converts the data from the from-file CCSID to the to-file CCSID.

Related reference
Copy Source File (CPYSRCF) command