Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
can we fetch cursor even after closing it

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
rajivtechno

New User


Joined: 05 Apr 2005
Posts: 17
Location: chennai

PostPosted: Sun Apr 24, 2005 6:19 pm    Post subject: can we fetch cursor even after closing it
Reply with quote

can we fetch cursor even after closing
Back to top
View user's profile Send private message
References
PostPosted: Sun Apr 24, 2005 6:19 pm    Post subject: Re: can we fetch cursor even after closing it Reply with quote

sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 160
Location: hyderabad

PostPosted: Mon Apr 25, 2005 11:58 am    Post subject:
Reply with quote

Hi Friend

no, we cannot fetch after the cursor is closed
the procedure is Declare-open-fetch-close

regards
siva
Back to top
View user's profile Send private message
shymalasridevi

New User


Joined: 03 May 2005
Posts: 16

PostPosted: Tue May 03, 2005 3:35 pm    Post subject: hai,
Reply with quote

we can open the cursor any no of times in a program
but before opening if it is opend we have to close the cursor
bye
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 260
Location: India

PostPosted: Tue May 03, 2005 4:24 pm    Post subject:
Reply with quote

cursor is nothing but a memory location where the query result are stored, so that you can perform some amthematical operation on the fetched valued, simple select won't let you to perform any operation on the element fetched.So when you perform close cursore , it is nothing but it realses that memory location.So after closing you can't fetch any more records.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1