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
 

 

How to bypass the cod with out abending in db2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to bypass the cod with out abending in db2
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    Post subject:
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    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 Bypass certain records in COBOL josepnass All Other Mainframe Topics 5 Fri Aug 08, 2014 6:58 am
No new posts Bypass JCl Step based on what month i... LouAnn Piela JCL & VSAM 12 Tue Apr 29, 2014 9:00 pm
No new posts PL/I - IMS DB program abending while ... mistah kurtz IMS DB/DC 4 Thu Apr 25, 2013 12:41 pm
No new posts Bypass the step, if the file is empty. Chiranjeevi9 JCL & VSAM 12 Fri Apr 19, 2013 12:05 am
No new posts CICS program abending with ASRA Vijay_reddy CICS 16 Fri Oct 19, 2012 10:24 am


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