Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us