You can run the CPYF utility automatically in a batch program by specifying the following parameters:
Syntax
CPYF [Source file] [Source DirLib] [Source server IP address] [Source server port] [Source DB type] [Target file] [Target DirLib] [Target server IP address] [Target server port] [Target DB type] [Copy mode]
Notes:
- If the server is local, specify "*LOCAL" in Server IP address.
- If the database is of Btrieve type, specify "B".
- If the database is of AS/400 type, specify "A".
- If the selected copy mode is REPLACE, specify "R".
- If the selected copy mode is ADD, specify "A".
Example:
CPYF FILE1 C:\DATABASE *LOCAL 900 B FILE2 *LIBL 194.3.108.14 901 A R