Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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
Author Message
kumar_ngl
Warnings : 1

Active User


Joined: 05 Aug 2005
Posts: 51
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
References
harinatha

New User


Joined: 24 Jul 2005
Posts: 31

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: 24

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

Active User


Joined: 05 Aug 2005
Posts: 51
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1