Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

ROWCATC Function

concatenates rows using blank compression

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

The inputs to 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. For example, the statements
   b={"ABC"  "D  "  "EF ",
      " GH"  " I "  " JK"};
   a=rowcatc(b);
produce the matrix A as shown:
      A        2 rows      1 col     (character, size 9)

                        ABCDEF
                        GHIJK
Quotes (") are needed only if you want to embed blanks or special characters or to maintain uppercase and lowercase distinctions.

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.