I am using a basic select statement to pull some accounts. I need to output those accounts in a single cell, and not rows of accounts.
PROC SQL;
CREATE TABLE WORK.WANT AS
SELECT /* Concatenated */
(cats(t1.COLUMN_1, ', ', t1.COLUMN_2)) AS ConcatenatedColumns
FROM WORK.HAVE t1;
QUIT;
I guess you need to have concatenated results from some table?
cats() function can be used to concat values of different columns, with removed leading and trailing blanks.
please note output columns will be in a string format