ROLLBACK (Db2 command line processor)

The ROLLBACK command rolls back all SQL work since the previous commit or rollback operation, and releases any database locks that are currently held by the active connection.

The Db2 command line processor COMMIT command performs the same function as the SQL ROLLBACK statement.
Read syntax diagramSkip visual syntax diagram ROLLBACK

Notes

ROLLBACK and autocommit mode
If autocommit mode is enabled, the ROLLBACK command has no effect.