Specifying *UPDADD when copying files

When you specify *UPDADD on the CPYF command, a from-file key value builds before the from-file record moves into the to-file. The from-file builds this key value by using the key specifications of the to-file. Before the key value is built, the system performs any necessary field or data mapping, data conversion, or record selection. The system checks the to-file to see if this key value already exists in it (duplicate key of the from-file data). If the key value does exist in the to-file,the from-file record that contains the key value updates that to-file record.

The following apply if you specify MBROPT(*UPDADD) on the CPYF command:


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]