1.3.10.4 Add String Attribute
The Add String Attribute processor adds a new String attribute with a given value to all records input to it.
There are a number of uses of the Add String Attribute processor. For example:
-
Use it to create a test String value for another processor, to see how that value is handled.
-
Use it to tag data records that are output from another processor with a specific attribute and value (for example, to add a DuplicateRecord attribute with a value of 'Yes').
-
Use it as a simple way of transforming all data that has been matched using another processor - for example to classify all values that did not match a specific list as 'Other'.
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:
|
Outputs |
Describes any data attribute or flag attribute outputs. |
Data Attributes |
The following data attributes are output:
|
Flags |
None. |
The Add String 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 String Attribute is used to tag all records that had data in the Title attribute, but where that data did not match a list of Valid Titles, with a NewTitle attribute with a value of 'Other'. A No Data Check and a List Check are used to filter the records to the required set:
NewTitle | CU_NO | CU_ACCOUNT | TITLE |
---|---|---|---|
Other |
13440 |
99-22730-SH |
Col. |
Other |
13467 |
99-23255-PB |
Rev |
Other |
15631 |
01-24993-SH |
Prof. |