the manual states about the explicit COMMIT statement in V9 (z/OS):
Restrictions on the use of COMMIT:
The COMMIT statement cannot be used in a stored procedure if the procedure is in the calling chain of a user-defined function or a trigger or DB2 is not the commit coordinator.