Administrative client macros

A macro is a file that contains one or more administrative client commands. You can run a macro from the administrative client only in batch or interactive modes. Macros are stored as a file on the administrative client. Macros are not distributed across servers and cannot be scheduled on the server.

Macros can include the following elements:
  • Administrative server commands
  • Comments
  • Continuation characters
  • Variables

The name for a macro must follow the naming conventions of the administrative client that is running on your operating system.

In a macro that contains several commands, use the COMMIT and ROLLBACK commands to control command processing within the macro.

You can include the MACRO command within a macro file to call other macros up to 10 levels deep. A macro that is called from the administrative client command line is called a high-level macro. Any macros that are called from within the high-level macro are called nested macros.