Duplicate record
5 pts.
0
Q:
Duplicate record
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 ?
ASKED: May 9 2009  0:05 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
24570 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
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
Last Answered: May 10 2009  10:46 PM GMT by Philpl1jb   24570 pts.
Latest Contributors: Samule400   60 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0