The description of the problem doesn't make complete sense. DB2 will return a -805 following an attempt to execute the first SQL statement. You should be getting the -805 on the first INSERT, not on the COMMIT following the INSERTs. I suppose it's possible that the error messaging isn't working quite right or the COMMIT might be the first SQL attempted.
There aren't all that many root causes for a -805. The most common is probably not running a bind after a compile and link edit. Your bind might be referencing the wrong DBRMLIB. You could be referencing the wrong STEPLIB/JOBLIB. You could be referencing the wrong plan. Your plan might not include the package in the PKLIST. You didn't mention if the run unit is 1 program or several programs. If several, you might be calling a module that isn't listed in the PKLIST.