1.3.11.3 Add Numeric Attribute

The Add Numeric Attribute processor adds a new Number attribute with a given value to all records input to it.

There are a number of uses of the Add Numeric Attribute processor. For example:

  • Use it to create a test Number value for another processor, to see how that value is handled. For example, use it to create a new input to a Maths processor.

  • Use it to tag data records that are output from another processor with a specific attribute and value

  • Use it as a simple way of transforming all data that has been matched using another processor

The following table describes the configuration options:

Configuration Description

Inputs

This processor does not require any inputs, as it adds an attribute to all records input to it.

Options

Specify the following options:

  • New Attribute Value: allows you to specify the numeric value of the new attribute you want to add. Specified as a number. Default value: None.

Outputs

Describes any data attribute or flag attribute outputs.

Data Attributes

The following data attributes are output:

  • NewNumber: the new Number attribute that you are adding. Value is as specified in the New Attribute Value option.

Flags

None.

The Add Numeric Attribute processor does not output any summary data. The new attribute is shown to the left of all other attributes in the data view.

Output Filters

None.

Example

In this example, Add Numeric Attribute is used to create a new attribute (renamed 'ValueToSubtract') with a fixed value (2) to use in a downstream Subtract processor:

ValueToSubtract CU_NO

2

13810

2

13815

2

13833

2

13840

2

13841

2

15531

2

13861

2

13865