makemv command: Overview, syntax, and usage
The SPL2 makemv command converts a single value field into a multivalue field by splitting the values either on a string delimiter or by using a regular expression.
The SPL2 makemv command converts a single value field into a multivalue field by splitting the values either on a string delimiter or by using a regular expression. You can't use this command on internal fields.
Syntax
The required syntax is in bold.
makemv
[ delim = delimiter ]
[ tokenizer = tokenizer ]
field
Required parameters
field
Syntax: field
Description: The name of the field to generate the multivalues from.
Optional parameters
delim
Syntax: delim=string
Description: A string value used as a delimiter. Splits the values in field on every occurrence of this delimiter. Multicharacter delimiters are supported.
Default: A single space (" ").
tokenizer
Syntax: tokenizer=string
Description: A regular expression with a capturing group that is repeat-matched against the values in the field. For each match, the first capturing group is used as a value in the newly created multivalue field.
Default: None
Usage
This SPL2 command does not support the following arguments, which are used with the SPL version of the makemv command. Instead, the default values for these arguments are used:
- allowempty: Does not produce a value for empty strings. For example if
delim=","andfield="a,,b", the empty string value is not included in the converted multivalue field. - setsv: Does not allow the field values to be combined into a single value.
See also
makemv command