Duplicate record

5 pts.
Tags:
Relative Record Number
When attempting to rewrite a record after moving/changing one of the components of the key, it hits a error - ie. duplicate key. But after investigation using sql, there is no such existing key value in the database. Why is this happening ?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Search the duplicate record in the INPUT file.
///////////////////////////////
Focus on the keyfields of the primary – use DSPFD to determine the keys
The value of the combined key fields must be unique.
Check for logical files – DSPDBR physical
if any of these are UNIQUE then their keys also cannot be duplicated.
Check your code – you maybe attempting to write the same record twice.
Phil

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: