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

cursor declaration


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

New User


Joined: 19 Aug 2003
Posts: 20
Location: kolkata

PostPosted: Wed Aug 27, 2003 10:13 am
Reply with quote

Hi,
I have a small doubt regarding declaration of cursor.

1. Can one declare cursor in procedure division icon_question.gif
2. If one can declare a cursor in procedure division then does it differ from one which is declared in working storage icon_question.gif ...if differs how icon_question.gif

Thanks in advance..
Prasad Rachuri...
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Wed Aug 27, 2003 2:28 pm
Reply with quote

Hello prasad,

1) YES....


2) NO, ideally it should not differ.
But not sure on this.


Hope this helps you...

Regards

Mayuresh
Back to top
View user's profile Send private message
prasadrachuri

New User


Joined: 19 Aug 2003
Posts: 20
Location: kolkata

PostPosted: Wed Aug 27, 2003 2:55 pm
Reply with quote

Hi Mayuresh,
Nice to see you in the picture once again...

if both doesn't differ in action then why IBM given possiblity of declaring cursor in both the places... icon_wink.gif

Thanks in advance..
Prasad Rachuri...
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Thu Aug 28, 2003 9:08 pm
Reply with quote

Hello,

Check these links for more informatio on this issue.


Code:
[url]http://h71000.www7.hp.com/doc/721FINAL/6607/6607pro_022.html[/url]


[url]http://dbforums.com/arch/91/2002/7/435397[/url]



The cursor declaration is same as that of what we declare in the Working storage section.

There may be some reasons why IBM has provided this. Need to do some R&D for this.

Hope this helps you.

icon_lol.gif

Regards

Mayuresh
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 Inserting into table while open selec... DB2 1
No new posts Is SQLCODE -811 possible while fetchi... DB2 1
No new posts Restart logic by using cursor name in... DB2 1
No new posts Seeking Resolution for SQKCODE -991 o... DB2 2
No new posts Multiple rows within Cursor when Coun... DB2 14
Search our Forums:

Back to Top