-2

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.

Eyal Marom
  • 247
  • 1
  • 12

1 Answers1

0
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.

Niqua
  • 236
  • 2
  • 12