The COPY command copies the specified local file to a new file.
Syntax:
Command
Keyword
Value
Developer notes
COPY
FROM
value
Mandatory. Old file name.
TO
value
Mandatory. New file name.
REPLACE
*YES
Optional. Replace file.
*NO
Do not replace file. The default value of the REPLACE keyword is *NO. If the TO filename exists, then the rename process is stopped, unless the REPLACE keyword is *YES.