10 The key field is not modifiable.

Returned as COBOL status: 21

An attempt was made to perform a REWRITE operation where an attempt to change a key value was made although the key is defined as non-modifiable in the file.

The Xfh2btr module will create the primary key as non-modifiable and the alternate keys as modifiable.

This error implies that the Btrieve file was created outside of the COBOL system, and that an alternate key is defined as non-modifiable.