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

How to recify the sqlcode -803


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

New User


Joined: 29 Mar 2005
Posts: 62

PostPosted: Tue Jun 28, 2005 9:59 am
Reply with quote

Hi,

i'm having very simple doubt.how to recify the sqlcode -803(it's an unique index).how to view that code.by going thru sdsf or thru spufi.plz any one explain.if i'm geting any sqlcode where i've to view the error ,in spufi or in spool.


Regards,
kumar.
Back to top
View user's profile Send private message
brganeshbabu

New User


Joined: 23 Jun 2005
Posts: 34
Location: Chennai

PostPosted: Tue Jun 28, 2005 12:23 pm
Reply with quote

Your question is not that much clear. But still I will try to explain you.
When you execute a query from SPUFI, however you will get the sqlcode after you execute the query. If you are running an embedded sql you can find the sqlcode in SPOOL. When you try to insert into a table whose value already exists this kind of error arises. You have to change the index value and insert it again.
If this is not the answer pl make your question clear. Or tell me what you really tried to do.
Back to top
View user's profile Send private message
Girishm

New User


Joined: 09 Mar 2005
Posts: 35
Location: Mysore

PostPosted: Thu Jun 30, 2005 5:19 pm
Reply with quote

Hi Karthik,
Check the definition of all the columns which are involved in ur query, at least one of them are defiened as UNIQUE. The value that u r trying to insert/update is present in the table, so duplicates were not allowed for those columns.

Please inform me, if it is not the case...
_______
GM
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 SQLCODE = -122 while using the scalar... DB2 4
No new posts SQLCODE = -16002 when using XMLEXISTS DB2 1
No new posts Is SQLCODE -811 possible while fetchi... DB2 1
No new posts SQLCODE=-204 SQLSTATE=42704 DB2 4
No new posts Getting sqlcode 805 while executing R... DB2 10
Search our Forums:

Back to Top