MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

db2 100 overcome

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
mainhead
Beginner


Joined: 07 Feb 2006
Posts: 26
Topics: 11

PostPosted: Wed Feb 08, 2006 12:38 pm    Post subject: db2 100 overcome Reply with quote

I have online screen where it abends while retriving from Table, comes out with 100

ROW NOT FOUND FOR FETCH, UPDATE OR DELETE, OR THE RESULT OF A QUERY IS AN EMPTY TABLE

, could any one please give information how to handle 100 abend

Thanks,
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Wed Feb 08, 2006 12:51 pm    Post subject: Reply with quote

mainhead,

Is this a trick question? Why not check the sql code immediately after the execuetion of the query?

Code:

EVALUATE SQLCODE
   WHEN  0
         PERFORM POPULATE-SCREEN-VARIABLES
   WHEN +100
         PERFORM SEND-ERROR-MESSAGE-TO-SCREEN
    WHEN OTHER
         PERFORM INHOUSE-ABEND-ROUTINE
END-EVALUATE



Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Wed Feb 08, 2006 1:24 pm    Post subject: Reply with quote

...sigh!
Back to top
View user's profile Send private message
raam_narayan
Beginner


Joined: 28 Apr 2006
Posts: 12
Topics: 2

PostPosted: Wed May 03, 2006 7:54 am    Post subject: Reply with quote

Hi,

Are u trying to to do a fetch in the Test Table or in the Production region.. Because if u r trying this in the Test environment u can modify the data as per ur convenience in the table and u can match the WHERE condition in ur SQL... Basically this SQLCODE arises when the table is EMpty or when it does not matches the WHERE clause... Try to modify the date in the Test table as per ur convenience and submit ur JOB or run it in the XPEDITOR so that u can find out what's happening... Pls revert back if u need more clarifications on this..

Thanks & Regards,
V.Ram NArayan
Back to top
View user's profile Send private message
mainhead
Beginner


Joined: 07 Feb 2006
Posts: 26
Topics: 11

PostPosted: Sun Jun 04, 2006 9:40 pm    Post subject: Reply with quote

its in live (production) screen
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group