COBOL · DB2 SQLCODE
What does SQLCODE -803 mean in COBOL?
Duplicate key value. An INSERT or UPDATE produced a value that duplicates an existing value in a column or set of columns constrained to be unique, such as a primary key or a unique index.
Duplicate key value. An INSERT or UPDATE produced a value that duplicates an existing value in a column or set of columns constrained to be unique, such as a primary key or a unique index.
Check the key value being inserted or updated against what already exists, and decide whether the intent was actually an UPDATE rather than an INSERT.