×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
You missed the group by clause in your select statement. (At least I
couldn't find it).
If it is the complete source code, dynamic SQL is not necessary, as Charles
already pointed out.
With static SQL you will get an compile error and AFAIK the compile message
is a little more specific.
BTW NEVER use variables that start with SQL or SQ, because IBM may create
additional variables in a future release that start with SQ or SQL. If those
variable names are identical with yours, you may get some troubles.
Mit freundlichen Grüßen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von ibm
Gesendet: Monday, 06. July 2009 22:00
An: Midrange Systems Technical Discussion
Betreff: RE: Stored Procedure with different SUMs
I've been struggling with this all day. All values look OK in the
debugger, but it keeps failing:
Also, another thing I noticed is if I replace the SELECTION_TERRITORY IN
Parm with a hardcoded integer (e.g. 10), *plus* remove the SUM()s, the
procedure runs.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.