View previous topic :: View next topic
|
Author |
Message |
murugan_mf
Active User
Joined: 31 Jan 2008 Posts: 148 Location: Chennai, India
|
|
|
|
Hi all,
While executing a program I got sqlcode=-501 saying that cursor is already open when trying to open.
Can you please suggest me on what possible reasons I may get this one. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Program loop? Invalid program logic? Not closing the cursor when you should? I don't know DB2 but the error message seems pretty obvious to me. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Can you please suggest me on what possible reasons I may get this one. |
Coding error
DB2 will not tell you it is already open if it is not. . .
Time to follow your code thru and correct the logic. |
|
Back to top |
|
|
cesaralt
New User
Joined: 19 Oct 2009 Posts: 3 Location: LIMA-PERU
|
|
|
|
Hi,
Very interesting, Where Can I find more information about it.
Regards,
Cesa A.
dick scherrer wrote: |
Hello,
Quote: |
Can you please suggest me on what possible reasons I may get this one. |
Coding error
DB2 will not tell you it is already open if it is not. . .
Time to follow your code thru and correct the logic. |
|
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Do you have a new question? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Where Can I find more information about it |
Clarify "it". I do not understand what you are asking. |
|
Back to top |
|
|
|