ROLLBACK (Rollback uncommitted changes in a macro)
Use this command within a macro to undo any processing changes made by commands run by the server but not yet committed to the database. A committed change is permanent and cannot be rolled back. The ROLLBACK command is useful for testing macros.
Ensure that your administrative client session is not running with the ITEMCOMMIT option when using this command.
Important: SETOPT commands
inside a macro cannot be rolled back.
Privilege class
Any administrator can issue this command.
Parameters
None
Example: Rollback changes in a macro
Run the REGN macro with the ROLLBACK command to verify that the macro works without committing any changes. The macro contents are:/* Macro to register policy
administrators and grant authority */
REGister Admin sara hobby
GRant AUTHority sara CLasses=Policy
REGister Admin ken plane
GRant AUTHority ken CLasses=Policy
ROLLBACK /* prevents any changes from being committed */
