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

CICS background transaction is getting abended with -803


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

New User


Joined: 01 Jan 2008
Posts: 35
Location: Hyderabad

PostPosted: Thu Jan 17, 2008 4:00 pm
Reply with quote

A cics background transaction is getting abended with -803 but when i check for the record in the table i did not find it . is there something more that i need to look at . Please Help.....
Back to top
View user's profile Send private message
abhishekmdwivedi

New User


Joined: 22 Aug 2006
Posts: 95
Location: india

PostPosted: Thu Jan 17, 2008 4:05 pm
Reply with quote

Here's the description as per manuals.

-803

AN INSERTED OR UPDATED VALUE IS INVALID BECAUSE THE INDEX index-name CONSTRAINS COLUMNS OF THE TABLE SUCH THAT NO TWO ROWS CAN CONTAIN DUPLICATE VALUES IN THOSE COLUMNS RID OF EXISTINGF ROW IS X’rid’.

Need to look up for a value which is creating duplicate records within the table.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Jan 17, 2008 4:10 pm
Reply with quote

well, don't fool yourself, db2 does not issue these erroneously. there is a duplicate attmpt at insert.

either use a debugger to trace or use some kind of audit trail (displays) to follow your logic. you might be in a loop, who knows?
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Jan 17, 2008 6:25 pm
Reply with quote

As Dick said, a loop is a good starting point. If you aren't committing your records, your program could be doing an INSERT using that key and if it goes uncommitted you could be attempting another INSERT using the same key, but due to the abend without a commit, all the data is rolled back off the table so when you go to look for it, it is gone.
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 Using API Gateway from CICS program CICS 0
No new posts Reorg abended with REASON=X'00E40347' DB2 2
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top