Hi,
Please find below the error I an getting :
“DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0119N An expression starting with "DEALER_NAME_ENG" specified in a SELECT
clause, HAVING...
Hi Frederico,
I tried your suggestion by putting hard coded value in local variables as well as parameter variables to local variable. It didn't work.
thanks
Roop
Yes. you are right. but it's not accepting host variable in group by clause. It works fine in DB2 9.7 LUW free version. But it's not working in DB2 10.1 Enterprise version.
Hi,
I have below scenario. I am just trying to avoid multiple queries by using case statement in group by clause in a Stored Procedure. I am using host variables in the case statement to decide what field to group by on. This code works fine in DB2 9.7 LUW free version. As soon as I run it on...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.