CATS function

Syntax

CATS (array1, array2)
CALL -CATS (return.array, array1, array2)
CALL !CATS (return.array, array1, array2)

Description

Use the CATS function to create a dynamic array of the element-by-element concatenation of two dynamic arrays.

Each element of array1 is concatenated with the corresponding element of array2. The result is returned in the corresponding element of a new dynamic array. If an element of one dynamic array has no corresponding element in the other dynamic array, the existing element is returned. If an element of one dynamic array is the null value, null is returned for the concatenation of the corresponding elements.

If you use the subroutine syntax, the resulting dynamic array is returned as return.array.

Example

A="A":@VM:"B":@SM:"C"
B="D":@SM:"E":@VM:"F"
PRINT CATS(A,B)

This is the program output:

ADSEVBFSC