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

cursors in db2


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

New User


Joined: 13 Aug 2008
Posts: 26
Location: chennai

PostPosted: Thu Dec 03, 2009 10:48 am
Reply with quote

Can anyone tell me how many cursors can be declared in db2
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Dec 03, 2009 10:52 am
Reply with quote

Hello,

You will probably get more useful replies if you explain what you want to do. . .
Back to top
View user's profile Send private message
bhuspin

New User


Joined: 13 Aug 2008
Posts: 26
Location: chennai

PostPosted: Thu Dec 03, 2009 10:59 am
Reply with quote

i want only the count , just to know
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Dec 03, 2009 12:36 pm
Reply with quote

Quote:
Can anyone tell me how many cursors can be declared in db2


actually you can't declare a cursor in db2.
you declare a cursor in a program.

can anyone tell me if there has been a less technically qualified question this week? (month? year?)

26 posts and you are asking questions like this.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Dec 04, 2009 3:21 am
Reply with quote

Hello,

There is also a considerable difference between declaring a cursor and opening a cursor. . .

Quote:
how many cursors can be declared in db2
I suspect you mean within one run unit (as opposed to the entire subsystem). . .

Reflect on what you really want to learn and take another shot. . .

As far as i know, there is no limit to the number of cursors specified specified.

As i mentioned, if you have some concern that you will reach some limit, post what you are trying to do with database and someone may have a suggestion. If there is anything being developed that the maximum possible is an issue, suggest a re-design is in order. . .
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Dec 04, 2009 5:47 am
Reply with quote

Most of the time when programmers are worried about such limits it is because they doing something the totally wrong way, or they are getting a compile error and are looking a reason other than their own code.
Back to top
View user's profile Send private message
neontech
Warnings : 1

New User


Joined: 08 Dec 2009
Posts: 11
Location: mumbai

PostPosted: Tue Dec 08, 2009 11:00 am
Reply with quote

You can have as cursors many cursors as you want in a DB2 cobol program.
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 Positioned Deletes/Updates using curs... DB2 3
No new posts Any limit on usage of cursors ? DB2 1
No new posts Is there drawbacks in using DB2 rowse... DB2 11
No new posts Handling multiple cursors in cobol - ... DB2 5
No new posts DB2 Select without using cursors in E... CA Products 3
Search our Forums:

Back to Top