Tivoli Header

Administrator's Reference

ROLLBACK (Rollback Uncommitted Changes in a Macro)

Use this command within a macro to undo any processing changes made by commands executed 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.

Note:
SETOPT commands inside a macro cannot be rolled back.

Privilege Class

Any administrator can issue this command.

Syntax

>>-ROLLBACK----------------------------------------------------><
 
 

Parameters

None.

Examples

Task

Run the REGN macro with the ROLLBACK command to verify that the macro works without committing any changes.

Macro Contents:
/* Macro to register policy
administrators & 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 */

Command:
macro regn

Related Commands

Table 248. Commands Related to ROLLBACK

Command Description
COMMIT Makes changes to the database permanent.
MACRO Runs a specified macro file.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]