STRING_CONCAT macro
The STRING_CONCAT
macro
is available in Unica Campaign and Unica Interact.
Syntax
STRING_CONCAT(string1, string2,
... stringN)
Parameters
string
Description
STRING_CONCAT
concatenates the ASCII text values in the specified data ranges. It
returns one new column for each input column, each containing the
concatenated strings from the corresponding rows of strings
.
This row-by-row calculation produces a result for each row up to the
last value of the shortest column.
Unica Interact also supports the following syntax:
STRING_CONCAT(
string1 ,
string2 ,
...
stringN )
For example, STRING_CONCAT('a',
'b', 'c', 'd')
is valid.
Examples
TEMP = STRING_CONCAT("house", "boat")
Creates a new column named |
TEMP = STRING_CONCAT(V1, ".")
Creates a new column named |
TEMP = STRING_CONCAT(V1, V2)
Creates a new column named |
TEMP = STRING_CONCAT(V1:V3, V4:V6)
Creates three new columns named |
TEMP = STRING_CONCAT(V1[5:10]:V2, V3:V4)
Creates two new columns named |
TEMP = STRING_CONCAT('a', 'b', 'c', 'd')
Creates a new column named |
Related Functions
Function | Description |
---|---|
STRING_HEAD |
Returns the first n characters of each string in the specified data range |
STRING_LENGTH |
Returns the length of each string in the specified data range |
STRING_SEG |
Returns the string segment between two specified indexes |
STRING_TAIL |
Returns the last n characters of each string in the specified data range |