Language Reference


ROWCATC Function

ROWCATC (matrix <, rows> <, columns> );

The ROWCATC function concatenates rows of a character matrix by using blank compression.

The arguments the ROWCATC function are as follows:

matrix

is a character matrix or quoted literal.

rows

select the rows of matrix.

columns

select the columns of matrix.

The ROWCATC function works the same way as the ROWCAT function except that blanks in element strings are moved to the end of the concatenation, as shown in the following example:

b = {"ABC"  "D  "  "EF ",
     " GH"  " I "  " JK"};
a = rowcatc(b);
print a (nleng(a))[label="NumChars"];

Figure 25.334: Concatenation of Rows

a NumChars
ABCDEF 9
GHIJK