The XDB directive IGNORE-NESTED was specified but a SQL statement was found in a nested subroutine. This directive stops the SQL Option preprocessor from generating any code for SQL statements.
Remove the SQL statements from the nested subroutine and recompile the program.