IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to handle -811 Error


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
madhusudan reddy
Currently Banned

New User


Joined: 17 Sep 2007
Posts: 3
Location: bangalore

PostPosted: Wed Sep 26, 2007 9:00 pm
Reply with quote

hi,
how ti handle -811?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Sep 26, 2007 10:24 pm
Reply with quote

madhusudan reddy wrote:
hi,
how ti handle -811?

1. Look in the manual and find out what it is.

2. If you are doing a SELECT either add more conditions to the WHERE or switch to a cursor.
Back to top
View user's profile Send private message
Gautam512

Active User


Joined: 05 Oct 2005
Posts: 308
Location: Vizag / US

PostPosted: Thu Sep 27, 2007 3:05 am
Reply with quote

hi,

need some more info regarding the -811, if u got an error, a brief
description shud be given...

can u post some more details...
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Thu Sep 27, 2007 9:21 am
Reply with quote

Hi,

SQLCODE -811 means, "More than One row Retreived in SELECT INTO".

To remove this error either you have to use cursor to maintain multiple rows or you have to add some more conditions in WHERE clause to get a single row.

If you post your query and results, we can help you more.

Regards,
KSK
Back to top
View user's profile Send private message
mauvis

New User


Joined: 27 Jul 2007
Posts: 11
Location: india

PostPosted: Mon Oct 01, 2007 8:31 pm
Reply with quote

use primary key in the where condition
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Oct 02, 2007 12:25 am
Reply with quote

Hello,

Quote:
use primary key in the where condition
If the primary key was known and the primary key was the only data needed to meet the data requirement, the topic would not have been started. . .

If all of the data returned from the original select is needed, using a cursor will allow the retrieval of multiple rows.

If the select is further restricted by adding additional predicates, data that now matches the selection criteria will not, possibly giving incorrect/incomplete results.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Oct 02, 2007 1:57 am
Reply with quote

I think the original poster has left us.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Tue Oct 02, 2007 2:06 am
Reply with quote

Gee, Craig,

It hasn't even been a week yet. . .

Other topics from the same TS haven't been replied to either.

Maybe later. . .

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top