MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

UNIQUE INDEX KEY DUPLICATES KEY OF INDEXED RECORD.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Uttank
Beginner


Joined: 12 Feb 2004
Posts: 12
Topics: 9

PostPosted: Sun Feb 15, 2004 6:17 am    Post subject: UNIQUE INDEX KEY DUPLICATES KEY OF INDEXED RECORD. Reply with quote

I deleted one row from a table in test env.And for the same record(row) I bought data from production env. for testing(in the form of punch and unload for 1 row.).When I tried to load this record I recieved this error msg "UNIQUE INDEX KEY DUPLICATES KEY OF INDEXED RECORD".

According to me, it seems that the record was not deleted from the index.

My question is,if this the case,how to delete the data from the index?

And the other question is, if we delete the entire table ,then I dont come across this error msg?In that case I believe the entire index gets deleted?

Can anybody pls explain with a solution.....
Back to top
View user's profile Send private message Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Feb 16, 2004 9:07 am    Post subject: Reply with quote

uttank,

How are you deleting the row from the table? Are you deleting via SPUFI or QMF? If you are then make sure that you have the AUTOCOMMIT set to YES. If it was set to NO then when your deletion of the record is rolled back.

You don't have to do any thing special to delete the index. If you physically delete a row with a commit then the index entry is automatically deleted.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group