Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Sqlcode -502 saying that cursor is already open

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
murugan_mf

Active User


Joined: 31 Jan 2008
Posts: 148
Location: Chennai, India

PostPosted: Thu Oct 16, 2008 7:52 pm    Post subject: Sqlcode -502 saying that cursor is already open
Reply with quote

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
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8152
Location: East Dubuque, Illinois, USA

PostPosted: Thu Oct 16, 2008 7:56 pm    Post subject:
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Oct 16, 2008 9:18 pm    Post subject:
Reply with quote

Hello,

Quote:
Can you please suggest me on what possible reasons I may get this one.
Coding error icon_neutral.gif

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
View user's profile Send private message
cesaralt

New User


Joined: 19 Oct 2009
Posts: 3
Location: LIMA-PERU

PostPosted: Mon Jul 01, 2013 7:00 am    Post subject:
Reply with quote

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 icon_neutral.gif

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
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jul 01, 2013 2:56 pm    Post subject:
Reply with quote

Do you have a new question? icon_confused.gif
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Mon Jul 01, 2013 7:11 pm    Post subject:
Reply with quote

Hello,

Quote:
Where Can I find more information about it


Clarify "it". I do not understand what you are asking.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am
No new posts Release of Adabas Cursor mohitsethi All Other Mainframe Topics 1 Mon Feb 06, 2017 8:36 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us