Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to recify the sqlcode -803

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to recify the sqlcode -803
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    Post subject:
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    Post subject: Re: How to recify the sqlcode -803
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    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 SQLCODE 518 while executing DB2 module. abdulrafi DB2 8 Wed Feb 07, 2018 10:46 am
No new posts SQLCODE=100 and SQLSTAE 02000 pshongal DB2 12 Fri Jan 19, 2018 10:14 am
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am
No new posts SQLCODE-000000080N priya91 DB2 1 Mon Feb 01, 2016 4:35 pm
No new posts Need to understand SQLCODE = 12 rohanthengal DB2 3 Thu Nov 05, 2015 11:22 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us