You can use the Split Fields step to split a field into multiple fields based on a specified delimiter.
The following fields are general to this transformation step:
|Specify the unique name of the step on the canvas. You can customize the name or leave it as the default.
|Field to split
|Specify the name of the field you want to split.
|Specify the delimiter character that separates the fields. Special characters can be set with the format
$[value]. For example
CHAR HEX01 can be set as
|Enclose a field with a pair of specified strings. Use this option if you want separator characters in the fields.
The fields in this table define the properties for each new field created by the split. For each new field, you must define the New field name, Type, and other properties.
|Specify the name of the new field created by the split.
|Specify an identifier string in the field. If you specify an ID that does not match the existing ID in the field, the resulting field value is null.
|Specify an ID to remove from the field in the output.
|Select the field's data type from the drop-down list or enter it manually.
|Specify the length of the field.
|Specify the number of floating point digits for number type fields.
|Select the format mask (number type) from the drop-down list or enter it manually. See Common Formats for information on common valid date and numeric formats you can use in this step.
|Specify the method used to separate units of thousands in numbers of four digits or larger, either a comma (,) as in 10,000.00 or a dot (.) as in 5.000,00.
|Specify the symbol used to represent a decimal point, either a dot (.) as in 10,000.00 or a comma (,) as in 5.000,00.
|Specify the symbol used to represent currencies. For example, $ or €.
|Specify a string to match in the field. When the field value matches the specified string, the field value is set to null.
|Specify the default value of the field if it is null or empty.
|Select the trimming method (none, left, right, or both) to apply to a string if truncating the field before processing. Trimming only works when no field length is specified.
See Understanding PDI data types and field metadata to maximize the efficiency of your transformation and job results.
The following settings split a SALES_VALUES field containing: "500,300,200,100" into four new fields:
The result is four fields:
See also Split field to rows