The type of connection done for the package creation is based on the type of connect requested using the RDBCNNMTH parameter.
If RDBCNNMTH(*DUW) was specified, commitment control is used and the connection may be a read-only connection. If the connection is read-only, then the package creation will fail.