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

Can we delete a cursor?


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

New User


Joined: 16 Mar 2007
Posts: 8
Location: Trivandrum,Kerala,India

PostPosted: Fri Apr 20, 2007 12:28 pm
Reply with quote

Can we delete a cursor? Is it a temporary storage which gets deleted automatically after our program execution?
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Fri Apr 20, 2007 1:25 pm
Reply with quote

I think CLOSE CURSOR will take care of the releasing the memory , if you do not expilcitly code CLOSE CURSOR then after the execution of the program CURSOR will be automatically closed there by releasing the memory.
Back to top
View user's profile Send private message
rakhisoman

New User


Joined: 16 Mar 2007
Posts: 8
Location: Trivandrum,Kerala,India

PostPosted: Fri Apr 20, 2007 1:40 pm
Reply with quote

Thank you for the reply.But is it possible to delete the cursor explicitly in our program.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Fri Apr 20, 2007 2:19 pm
Reply with quote

Hi Rakhi,

Cursor is a program construct rather than an object in the DB2. So, when we say "delete a cursor" , that doesn't mean anything.

Yes, if you want to ask "Can we delete rows fetched by a cursor?". Yes we can.
Back to top
View user's profile Send private message
rakhisoman

New User


Joined: 16 Mar 2007
Posts: 8
Location: Trivandrum,Kerala,India

PostPosted: Fri Apr 20, 2007 2:32 pm
Reply with quote

Thank you that clears my query
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 DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
No new posts volume mass delete RMM JCL & VSAM 2
Search our Forums:

Back to Top