Macro

Macro commands are used to avoid modifications in the script every time an object is added. Because macro commands are resolved dynamically by the system at runtime, script maintenance is simplified. As the object model changes, the macro commands automatically adapt to the changes.

For example, you can use a macro command to publish all object_type definitions. The syntax to do this is as follows:

publish object_type definitions .

where object_type can be a data source, row source, dimension, stagemap, cube, or constraint.

Using row source as an object type, the following example publishes all row source definitions. The semantics of “all” is determined at runtime. If you add an object type, you do not need to change the script.

publish rowsource definitions

Other commands that can be used as a macro command include: