15 DUPKEY


If the RESP of the CICS command is equal to "15", then it's meaning is DUPKEY. 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
DELETE 15 140 Reason - A record is accessed by way of an alternate index with the NONUNIQUEKEY attribute, and another alternate index record with the same key follows.

Solution - If the both records are okay to delete then, continue with the delete operation.

If both records are not intended to delete, use the other unique attribute to delete the desired record deletion.
READ
READNEXT
READPREV
15 140 Reason - A record is accessed by way of an alternate index with the NONUNIQUEKEY attribute and another alternate index record with the same key follows.

Solution - Read all the records to check the desired record using program logic.

If all the records are not needed and just to check the record is exits or not, skip the error and continue with processing.