Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Regardin stored procedures

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
sivasaras

New User


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

PostPosted: Wed Feb 02, 2011 10:16 pm    Post subject: Regardin stored procedures
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    Post subject:
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: 90
Location: chenna/i-

PostPosted: Thu Feb 03, 2011 8:13 pm    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Thu Feb 03, 2011 8:29 pm    Post subject:
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: 90
Location: chenna/i-

PostPosted: Thu Feb 03, 2011 8:55 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 6 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us