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

user abend DSNT404I SQLCODE 100


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts ISAM and abend S03B JCL & VSAM 9
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts user exit in IBM Infosphere Optim DB2 8
No new posts Running a Job with the Default User ID JCL & VSAM 2
Search our Forums:

Back to Top