STR_CAT

Use the STR_CAT script function to combine two strings into a new string.

Syntax

STR_CAT (String1, String2)

Parameters

Parameter Description Format
STR_CAT Combines two strings into a new string. Keyword
String1 Specifies the first alphanumeric string. Script literal or script variable
String2 Specifies the second alphanumeric string to append. Script literal or script variable

Return Codes

The function returns a new string that consists of the two specified strings combined.

Examples

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 2026-06-15:

: SET &PROCESS# = "Monthly Analysis "

: SET &DATE# = SYS_DATE("YYYY-MM-DD")

: SET &TITLE# = STR_CAT(&PROCESS#, &DATE#)

See also: