L119: A column in a HAVING clause is not included in the GROUP BY clause.

See the section Error SQLCODES in your IBM Database Messages and Codes manual, message -119, for information.