IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to browse index of a table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
student_mf

New User


Joined: 15 Jun 2007
Posts: 23
Location: pune

PostPosted: Wed Oct 07, 2009 6:02 pm
Reply with quote

hi when i run a job i got duplicate error

SQLCODE = -803, ERROR: AN INSERTED OR UPDATED VALUE IS
INVALID BECAUSE INDEX IN INDEX SPACE CBRRSRX2 CONSTRAINS
COLUMNS OF THE TABLE SO NO TWO ROWS CAN CONTAIN DUPLICATE
VALUES IN THOSE COLUMNS. RID OF EXISTING ROW IS X'0000000234.

iam new to db2 and i used SELECT * FROM SYSIBM.SYSINDEXES WHERE TBNAME='tablename'; and i got the indexname index space name and my test table has 52 rows and how to browse index cols to identify which col is causing dupliacte error.

any suggestions thanks.
Back to top
View user's profile Send private message
alluri12

New User


Joined: 15 Aug 2006
Posts: 44
Location: Virginia, USA

PostPosted: Wed Oct 07, 2009 7:48 pm
Reply with quote

If you know the index name then go to
Code:
SYSIBM.SYSKEYS


Code:
select * from SYSIBM.SYSKEYS
where ixname = indexname


Now you can see all the columns for that index
Back to top
View user's profile Send private message
student_mf

New User


Joined: 15 Jun 2007
Posts: 23
Location: pune

PostPosted: Thu Oct 08, 2009 1:19 pm
Reply with quote

alluri12 wrote:
If you know the index name then go to
Code:
SYSIBM.SYSKEYS


Code:
select * from SYSIBM.SYSKEYS
where ixname = indexname


Now you can see all the columns for that index


thanks it worked .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top