14 DUPREC
14 DUPREC
If this error condition occurred, the task gets abnormally terminated.
Command | RESP2, Description & Solution |
---|---|
REWRITE | 150 - An attempt is to rewrite a record to a data set whose upgrade set has an alternate index with the UNIQUEKEY attribute, if the corresponding alternate key already exists in the alternate index.
Solution - This happens due to the rewriting records alternate key matches with another existing records alternative key. Debug the program logic to resolve the issue. |
WRITE | 150 - An attempt is to add a record to a file in which the same key already exists.
Solution - The attempt is to add a record with a duplicate key. If required update the data in the record, rewrite the record. Change the program logic accordingly. |