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 - Cursors

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


Joined: 19 Dec 2002
Posts: 19
Topics: 2

PostPosted: Thu Feb 06, 2003 4:08 am    Post subject: DB2 - Cursors Reply with quote

Hello all,

This may be a trivial question , but here goes....

When we use a cursor - if a negative sql code results and error handling is done, will a subsequent " close cursor " work ? For eg:, suppose the sqlcode -904 is handled and the flow is continuing, will a close cursor following the fetch statement work out ?

Thanks in advance,
_________________
Regards,
satjag
Back to top
View user's profile Send private message
satjag
Beginner


Joined: 19 Dec 2002
Posts: 19
Topics: 2

PostPosted: Fri Feb 07, 2003 6:07 am    Post subject: Reply with quote

Thanks for the answer.
The control will come to FETCH only after the OPEN statement on the cursor is successful.The sequence is OPEN, FETCH and CLOSE. Here if the FETCH is giving the code which I mentioned , will the subsequent CLOSE of the cursor return any sqlcode ?

Thanks in advance,
_________________
Regards,
satjag
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