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
 

 

SQL CODE -501

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

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Wed Aug 31, 2005 10:11 pm    Post subject: SQL CODE -501
Reply with quote

Hi all,

Plz anyone explain me what is sql code -501????I was asked this question in an interview.....

thanks,
kumar.p.v
Back to top
View user's profile Send private message

harinatha

New User


Joined: 24 Jul 2005
Posts: 28

PostPosted: Thu Sep 01, 2005 11:23 am    Post subject: Re: SQL CODE -501
Reply with quote

Hi Kumar,

U can check this error code in any book..
anyway this is explained below.
-501 THE CURSOR IDENTIFIED IN A FETCH OR CLOSE STATEMENT IS NOT OPEN


Iam trying to fetch or close the cursor which is not open.

Thanks & Regards,
Hari.
Back to top
View user's profile Send private message
ravikumarreddy
Warnings : 1

New User


Joined: 29 Jul 2005
Posts: 23

PostPosted: Thu Sep 01, 2005 12:03 pm    Post subject: Re: SQL CODE -501
Reply with quote

hi,

i would like to add some more information to the above answer.
All the sqlcodes like -501,-502,-503,-504 are related to cursors only.
so make note of these..

regards,
ravi
Back to top
View user's profile Send private message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Thu Sep 01, 2005 12:13 pm    Post subject: Re: SQL CODE -501
Reply with quote

thanx hari

kumar
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 Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm


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