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

Regardin stored procedures


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

New User


Joined: 29 Sep 2007
Posts: 93
Location: chenna/i-

PostPosted: Wed Feb 02, 2011 10:16 pm
Reply with quote

Hi,

From the front end java side they are trying to add a new row, while
adding they are getting error as the given attributes already exists.

the error code we got in Mainframe for the stroed procedure is
-803 INSERT SQL - DB2 ERROR
NAME:SG: DSNXRINSSQLERRD: -110
SQLWARN: SQLSTAT: 23505

while inserting a duplicate row we get this error.but i want to find which index is causing this error.

thanks
saras
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Thu Feb 03, 2011 4:25 pm
Reply with quote

Quote:
-803 AN INSERTED OR UPDATED VALUE IS INVALID BECAUSE THE INDEX IN INDEX
SPACE indexspace-name CONSTRAINS COLUMNS OF THE TABLE SO NO TWO
ROWS CAN CONTAIN DUPLICATE VALUES IN THOSE COLUMNS. RID OF EXISTING
ROW IS Xrid

so probably indexspace-name = DSNXRINS

Code:
select * from sysibm.sysindexes where indexspace = 'DSNXRINS'
Back to top
View user's profile Send private message
sivasaras

New User


Joined: 29 Sep 2007
Posts: 93
Location: chenna/i-

PostPosted: Thu Feb 03, 2011 8:13 pm
Reply with quote

hi,

when i ran the query i got only NAME field.

Thanks
Saras
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Feb 03, 2011 8:29 pm
Reply with quote

what query?

may have to increase your output record size in spufi

and of course you have to shift right.

names can be 128 chars.

sure glad it is time to go home.
Back to top
View user's profile Send private message
sivasaras

New User


Joined: 29 Sep 2007
Posts: 93
Location: chenna/i-

PostPosted: Thu Feb 03, 2011 8:55 pm
Reply with quote

Hi,

Thanks for the information.

when i ran that query i got all the columns with zero rows displayed.

Thanks
Saras
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 Invoke stored procedure via batch JCL. DB2 2
No new posts Infosphere Optim - unable to save Col... IBM Tools 0
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts user exits in Column Map procedures IBM Tools 0
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
Search our Forums:

Back to Top