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
 

 

user abend DSNT404I SQLCODE 100

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

New User


Joined: 07 Aug 2006
Posts: 1
Location: Noida

PostPosted: Tue Aug 08, 2006 5:16 pm    Post subject: user abend DSNT404I SQLCODE 100
Reply with quote

I have one program in production which is doing join operation on 2 tables using primary key of tab A and forgien key of Tab B based on some condition in where clause. Also i am using "optimize for 1 row " option in where clause.

When program updates tab B based on key field which is already fetch from select clause, some time program runs fine and ended with mcc 00 but some day it abend (User abend) with following error.

DSNT404I SQLCODE 100, NOT FOUND, ROW NOT FOUND FOR FETCH , UPDATE

program runs fine again after some time without any user intervention.

what i found by searching in net is this prob occurs due to heavy usage of DB at instance so if you reset the DB to it's initial state program will run fine on next run onwards.


Can any one give me more inputs in this?????????????

Thanks in advance

Satish
Back to top
View user's profile Send private message

cramakrishnan

New User


Joined: 30 Jul 2006
Posts: 3

PostPosted: Wed Aug 23, 2006 11:00 am    Post subject: Re: user abend DSNT404I SQLCODE 100
Reply with quote

Hi

My understanding of the problem is this
*) There is a select clause and after this there is an update. The update fails after the fetch.
The problem might be that the record fetched is not locked. Try using Fetch "For Update" clause in the Select sql. This will hold the record in Update lock. Also try using the Isolation as CS. Try releasing the lock by a commit after the update as you have stated that there is a heavy DB usage...

HTH
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 IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts User Cancels the job PANDU1 DB2 1 Sat Mar 04, 2017 8:21 pm
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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