The SQL Option preprocessor found a HAVING clause in an embedded SELECT ... INTO statement. This is not valid on the mainframe.
Remove the GROUP BY clause or convert the statement into a DECLARE CURSOR statement, then recompile the program.