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: 8449
Location: Dubuque, Iowa, 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 Send text at cursor position on an IS... Domenic Ailati CLIST & REXX 10 Sun Jun 02, 2019 7:34 am
No new posts Cursor result set being updated??? John Poulakos DB2 5 Tue May 28, 2019 10:46 pm
No new posts SQLCODE -950 in PREPARE statement ... PeD DB2 2 Sat Apr 20, 2019 7:00 pm
No new posts POSITIONING THE CURSOR USING REXX MJ SHARATH CLIST & REXX 6 Tue Apr 09, 2019 10:27 am
No new posts How to resolve sqlcode of CALL ATTACH... maxsubrat DB2 3 Fri Feb 22, 2019 11:54 am

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