Adding variables and constants
- Double-click a mapping to open it in the Mapper Editor.
- Click the Variables and Constants tab in the Mapping Console view.
-
Right-click on a blank space on the Variables and Constants tab and select one of these
options:
-
Select Create Variable to create a variable with a default name
NewVariable1
.A V-icon indicates a variable. Assigning values to Variable is optional.
-
Select Create Constant to create a constant with a default name
NewConstant1
.A C-icon indicates a constant. Assigning values to Constant is required.
Note: A unique index is added to the default variable or constant name. -
- Specify Value Type, Value and Description.
- Drag a variable or a constant from the Variables and Constants tab to a parameter element in the Mapping Editor. Now, the variable or constant has been assigned to the parameter. You can also drag a variable or constant from the Variables and Constants tab directly to a document.
- Save the mapping.