|  | ## Set Macro

#### Synopsis

This operator can be used to define a single arbitrary macro which can be used by %{my_macro} in parameter values.

#### Description

(Re-)Define macros for the current process. Macros will be replaced in the value strings of parameters by the macro values defined as a parameter of this operator. In contrast to the usual MacroDefinitionOperator, this operator only supports the definition of a single macro and can hence be used inside of parameter iterations.

You have to define the macro name (without the enclosing brackets) and the macro value. The defined macro can then be used in all succeeding operators as parameter value. A macro must then be enclosed by "MACRO_START" and "MACRO_END".

There are several predefined macros:

- MACRO_STARTprocess_nameMACRO_END: will be replaced by the name of the process (without path and extension)
- MACRO_STARTprocess_fileMACRO_END: will be replaced by the file name of the process (with extension)
- MACRO_STARTprocess_pathMACRO_END: will be replaced by the complete absolute path of the process file

In addition to those the user might define arbitrary other macros which will be replaced by arbitrary strings during the process run. Please note also that several other short macros exist, e.g. MACRO_STARTaMACRO_END for the number of times the current operator was applied. Please refer to the section about macros in the RapidMiner tutorial. Please note also that other operators like the FeatureIterator also add specific macros.

#### Input

- through 1:

#### Output

- through 1:

#### Parameters

- macro: The macro name defined by the user.
- value: The macro value defined by the user.

#### ExampleProcess