Configure a horizontal macro based on whether you want to use incoming fields or constants in the macro expression.
Create one or more macro input fields:
To use incoming fields, create a macro input field to define the incoming fields to use.
To use constants, create a macro input field for each set of constants that you want to use.
Create a transformation output field.
In the transformation output field, configure the macro expression. Use a horizontal expansion function and include the macro input fields.
To include the results of a horizontal macro in the mapping, use the default field rule in the downstream transformation. You can use any field rule that includes the transformation output field.
To write the results of a horizontal macro to the target, connect the transformation output field to a target field in the Target transformation.