STR_CAT

Script Function: Combines two strings to a new string

Syntax

STR_CAT (String1, String2)

Syntax

Description/Format

String1, String2

Alphanumeric string
Format: script literal or script variable

 

Return code

String consisting of the two specified strings

Example

 

The following example combines two strings (AE and system) to yield 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 yield a title such as Monthly Analysis 2022-03-15.

:SET &PROCESS# = "Monthly Analysis "
:
SET &DATE# = SYS_DATE("YYYY-MM-DD")
:
SET &TITLE# = STR_CAT(&PROCESS#, &DATE#)

See also:

seealso

Script Elements for Editing Strings