COBSQ0402 Statement contains too many host variables.

The SQL statement contains more than 8000 host and indicator variables.

Break the SQL statement into multiple SQL statements, then recompile the program.