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

How to bypass the cod with out abending in db2


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

New User


Joined: 17 Feb 2006
Posts: 1
Location: hyderabd

PostPosted: Fri Feb 17, 2006 11:24 am
Reply with quote

Hi all

problem:

The program is abended due to row not found for fetch sql code 100

so now i want to bypass the code for this even if it is sql code getting 100

with some error message writing to the file

this is urgent


thanks in advance
Back to top
View user's profile Send private message
prabs2006

Active User


Joined: 12 Jan 2006
Posts: 103

PostPosted: Fri Feb 17, 2006 2:32 pm
Reply with quote

After the DB2 fetch

If SQLCODE = 100
<<write the err msg>>
end-if

Your DB2 return code will be stored in SQLCODE from where u can bypass the condition.

T & R
Prabs
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 *MASTER* address space abending at IPL All Other Mainframe Topics 2
No new posts Db2 load job abending in SORT DB2 4
No new posts DB2 Program abending without giving a... DB2 7
No new posts Bypass certain records in COBOL All Other Mainframe Topics 5
No new posts Bypass JCl Step based on what month i... JCL & VSAM 12
Search our Forums:

Back to Top