14 DUPREC
14 DUPREC
If the RESP of the CICS command is equal to "14", then it's meaning is DUPREC.
Discard the record insertion if the duplicates not allowed or rewrite the record if data needs to be updated.
Default Action - The task gets terminated abnormally.
Command | RESP | RESP2 | Reason, Deafult Action & Solution |
---|---|---|---|
REWRITE | 14 | 150 | Reason - An attempt is made to rewrite a record to a data set which 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. Check the record that has the same alternate index. If the existing record is valid, try changing the inserting record values. If both records are valid and should be present in the file, the contact SME about the alternate index UNIQUEKEY attribute. |
WRITE | 14 | 150 | Reason - 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 it is required to update the record data that already exists, rewrite the record and change the program logic accordingly to do that. If it is not required to update the record data, skip the insertion process when DUPREC error occured. |