There's a workspace which is writing to Netezza.
Included GENSTATS query as End sql in Netezza writer, but it gives the below error.
ERROR: GENERATE STATISTICS cannot run inside a BEGIN/COMMIT block or stored procedure.
Any thoughts or workaround is appreciated.