STR_CAT
Use the STR_CAT script function to combine two strings to a new string.
Syntax
STR_CAT (String1, String2)
Parameters
-
STR_CAT
Combines two strings to a new string -
String1
Alphanumeric string
Format: script literal or script variable -
String2
Alphanumeric string
Format: script literal or script variable
Return code: A string that consists of the two specified strings.
Example
The following example combines two strings (AE and system) to get a single string (AE system):
:SET &STRING# = STR_CAT("AE", " system")
The following example creates a title and stores the string in a script variable. When the script is processed, the variable is resolved to provide a title such as Monthly Analysis 2023-11-15.
:SET &PROCESS# = "Monthly Analysis "
:SET &DATE# = SYS_DATE("YYYY-MM-DD")
:SET &TITLE# = STR_CAT(&PROCESS#, &DATE#)
See also: