Skip to main content

Concat Fields

Description

Concat fields, is a step in the Transformation Plugin for Process Studio Workflows. The Concat Fields step concatenates multiple fields (The fields can be separated by a separator and an enclosure) and outputs into a target field.

Configurations

No.Field NameDescription
1Step nameSpecify the name of the step as it appears in the workflow workspace. This name has to be unique in a single workflow.
2Target Field NameSpecify the name of the target field (String type)
3Length of Target FieldSpecify the length of the string type (setting the meta-data of the String type, this is also used by the Fast Data Dump option for performance optimization)
4SeparatorSpecify the character that separates the fields in a single line of text. Typically this is ; or a tab.
5EnclosureA pair of strings can enclose some fields. This allows separator characters in fields. The enclosure string is optional.
Fields TabThis is identical to the fields tab option of the Text File Output step.
1NameSpecify the name of the field.
2TypeSpecify the Type of the field can be either String, Date or Number.
3FormatSpecify the format mask to convert with. See Number Formats for a complete description of format symbols.
4LengthSpecify the length option depends on the field type follows:

- Number - Total number of significant figures in a number String - total length of string

- Date - length of printed output of the string (e.g. 4 only gives back year)

5PrecisionSpecify the precision option depends on the field type as follows:

Number - Number of floating point digits

String - unused

Date - unused

6CurrencySpecify the symbol used to represent currencies like $10,000.00 or E5.000,00
7DecimalA decimal point can be a "." (10,000.00) or "," (5.000,00)
8GroupA grouping can be a "," (10,000.00) or "." (5.000,00)
9Trim typeSpecify the trimming method to apply on the string. Trimming only works when there is no field length given.
10NullIf the value of the field is null, insert this string into the text file
11GetClick to retrieve the list of fields from the input fields stream(s)
12Button: Minimal widthAlter the options in the fields tab in such a way that the resulting width of lines in the text file is minimal. So instead of save 0000001, we write 1, etc. String fields will no longer be padded to their specified length.
Advance Tab:
1Remove selected fieldsEnable this checkbox to remove all selected fields from the output stream.
2Force the enclosure around fields?Enable this checkbox to force all field names to be enclosed with the character specified in the Enclosure property above.
3Disable the enclosure fix?This is for backward compatibility reasons (since version 4.1) related to enclosures and separators. The logic since version.

4.1 is: When a string field contains an enclosure it gets enclosed and the enclose itself gets escaped. When a string field contains a separator, it gets enclosed.

Check this option, if this logic is not wanted. It has also an extra performance burden since the strings are scanned for enclosures and separators. So when you are sure there is no such logic needed since your strings don't have these characters in there and you want to improve performance, un- check this option.

4HeaderEnable this option if you want a header row. (First line in the stream).

Note: All other output stream fields are set to Null when this line is produced.

5FooterEnable this option if you want a footer row. (Last line in the stream).

Note: All other output stream fields are set to Null when this line is produced.

6EncodingSpecify the String encoding to use from the dropdown list. Leave blank to use the default encoding on your system. To use Unicode specify UTF-8 or UTF-16. On first use, Process Studio will search your system for available encodings. Note: This is needed especially when you concatenate different encoded fields into the target field with a unique encoding. This applies also on Binary stored string fields due to Lazy conversion.
7Right pad fieldsAdd spaces to the end of the fields (or remove characters at the end) until they have the specified length.
8Fast data dump (no formatting)Improves the performance when concatenating large amounts of data by not including any formatting information. Please consider setting the "Length of Target Field" option to an approximately maximum of the target field length. This improves performance since the internal buffer will be allocated and needs no reallocation when it is not sufficient.

Note: When then "Length of Target Field" option is "0", the internal buffer size is calculated as 50 times the number of concatenated fields, for instance an internal buffer of 250 is used by default for 5 fields.

9Split every ... rowsIf this number N is larger than zero, split the resulting stream into multiple parts of N rows.

Note: This is only needed when a Header/Footer is used to be compatible with the result of the Text File Output step.

10Add Ending line of fileAllows you to specify an alternate ending row to the output stream.

Note: All other output stream fields are set to Null when this line is produced.