473,324 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

sql code = -804 query too long

Hi ,

My embedded sql query in my program retrieves huge amount of data . Hence the DB2 throws up a error message when queried to retrieve this huge data .
My query do contains joins and a number of where conditions as well .
Please let me know how to resolve this problem . Is there a keyword to extend db2 limiter which will resolve it .
Please let me know the solution ASAP .

Thanks
Rakesh
Mar 4 '07 #1
4 9716
Hi ,

My embedded sql query in my program retrieves huge amount of data . Hence the DB2 throws up a error message when queried to retrieve this huge data .
My query do contains joins and a number of where conditions as well .
Please let me know how to resolve this problem . Is there a keyword to extend db2 limiter which will resolve it .
Please let me know the solution ASAP .

Thanks
Rakesh
Hi,

I dont think this is problem with query too long. SQL804N is saying that your Host varaiables are invalid or you have modifed the output of precompilation. Verify your host variables.
Mar 5 '07 #2
Hi,

I dont think this is problem with query too long. SQL804N is saying that your Host varaiables are invalid or you have modifed the output of precompilation. Verify your host variables.
Hi Ramesh ,

Thanks for your instant response , the problem what i am getting is in my sas program "DB2 SQL Error, sqlca->sqlcode=-804
ERROR: DB2 statement is too long."
Please help me in getting the problem resolved in this scenario .

Thanks
Rakesh
Mar 14 '07 #3
bartonc
6,596 Expert 4TB
Hi Ramesh ,

Thanks for your instant response , the problem what i am getting is in my sas program "DB2 SQL Error, sqlca->sqlcode=-804
ERROR: DB2 statement is too long."
Please help me in getting the problem resolved in this scenario .

Thanks
Rakesh
Of course, it will help if you post the query here.
Mar 16 '07 #4
Thanks for ur response .
I m prviding you with pseudo query :

select a.userid , a.uernm , c.group , b.servernm , b.domain
from dept a ,
database b ,
faciilty c
where a.usernm = b.servernm
and c.group=b.domain

if &group is not eq ' '
then c.group in (&group)
/* Hi ramesh the problem we do face is when the above query is resolved lots of data gets resolved from the sas macro &group , probably this may cause my query to abend or because of type of data in the macro when resolved . This i m saying because when i retrieved much lesser data i faced the same proble say from 1000 groups to 400 groups then also i face this problem . So these r my options i think r the cause of this problem .
Hence let me know ur comments on it n its solution as well .
Looking from u an instant response . */

Thanks
Mar 18 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

51
by: Mudge | last post by:
Please, someone, tell me why OO in PHP is better than procedural.
4
by: jason | last post by:
Hello. Newbie on SQL and suffering through this. I have two tables created as such: drop table table1; go drop table table2; go
16
by: Dario de Judicibus | last post by:
I'm getting crazy. Look at this code: #include <string.h> #include <stdio.h> #include <iostream.h> using namespace std ; char ini_code = {0xFF, 0xFE} ; char line_sep = {0x20, 0x28} ;
109
by: Andrew Thompson | last post by:
It seems most people get there JS off web sites, which is entirely logical. But it is also a great pity since most of that code is of such poor quality. I was looking through the JS FAQ for any...
0
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to...
37
by: Alan Silver | last post by:
Hello, Newbie here, so please forgive what is probably a basic question ... I see a lot of discussion about "code behind", which if I have understood correctly, means that the script code goes...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
4
by: KenFehling | last post by:
Hello. I am wondering if there exists a piece of software that takes multiple .js files that are nicely indented and commented and create one big tightly packed .js file. I'm hoping the one file...
88
by: Peter Olcott | last post by:
Cab you write code directly in the Common Intermediate language? I need to optimize a critical real-time function.
7
by: blackrosezy | last post by:
#include char *code; void main() { char buf = "book";
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.