Adding, replacing, and updating records (MBROPT parameter)

 

Many i5/OS® copy commands enable you to add or replace existing data in the to-file specifying different attributes on the MBROPT parameter.

These commands include CPYF, CPYFRMQRYF, CPYFRMTAP, andCPYSRCF. The CPYF command also allows you to update duplicate key records and add nonduplicate key records to a to-file member.

You can do these tasks by specifying *REPLACE, specifying *ADD, or specifying *UPDADD on the MBROPT parameter.

 

Parent topic:

Copying files

 

Related concepts


Copying physical or logical files
Copying records into files that use trigger programs