On the CPYF , CPYFRMDKT , CPYFRMQRYF , CPYFRMTAP , or CPYSRCF commands, you can add or replace existing data in the to-file by specifying different attributes on the MBROPT parameter. The CPYF command also allows you to update duplicate key records and add non-duplicate key records to a to-file member. You can do these tasks by specifying *REPLACE, specifying *ADD, or specifying *UPDATE on the MBROPT parameter (see page "Specifying *REPLACE when copying files").