Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 7932
Location: Bellevue, IA

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 Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am
This topic is locked: you cannot edit posts or make replies. Secure Browse to open dataset sandip_mainframe TSO/ISPF 3 Tue Apr 26, 2016 11:18 am
This topic is locked: you cannot edit posts or make replies. BAE Systems - Recruitment Open Days -... Express Mainframe Jobs 0 Fri Apr 22, 2016 8:19 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us