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
 

 

How to handle -811 Error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: How to handle -811 Error
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    Post subject: Re: handling -811
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: 309
Location: Vizag / US

PostPosted: Thu Sep 27, 2007 3:05 am    Post subject:
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: 356
Location: New York

PostPosted: Thu Sep 27, 2007 9:21 am    Post subject:
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    Post subject: Reply to: How to handle -811 Error
Reply with quote

use primary key in the where condition
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: Tue Oct 02, 2007 12:25 am    Post subject:
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    Post subject:
Reply with quote

I think the original poster has left us.
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: Tue Oct 02, 2007 2:06 am    Post subject: Reply to: How to handle -811 Error
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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am


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