<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Summarizing the data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Summarizing-the-data/m-p/35486#M8760</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have a dataset like&lt;BR /&gt;
&lt;BR /&gt;
anlt lbno&lt;BR /&gt;
&lt;BR /&gt;
aaa  1&lt;BR /&gt;
aaa  2&lt;BR /&gt;
aaa  4&lt;BR /&gt;
bbb  2&lt;BR /&gt;
bbb  3&lt;BR /&gt;
bbb  4&lt;BR /&gt;
ccc  1&lt;BR /&gt;
ccc  2&lt;BR /&gt;
ccc  3&lt;BR /&gt;
ccc  4&lt;BR /&gt;
&lt;BR /&gt;
I want it to be printed in excel as&lt;BR /&gt;
&lt;BR /&gt;
anlt lbno&lt;BR /&gt;
&lt;BR /&gt;
aaa 1, 2, 4&lt;BR /&gt;
bbb 2, 3, 4&lt;BR /&gt;
ccc 1, 2, 3, 4&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
Sandhya.</description>
    <pubDate>Tue, 29 Dec 2009 19:05:27 GMT</pubDate>
    <dc:creator>Sandhya</dc:creator>
    <dc:date>2009-12-29T19:05:27Z</dc:date>
    <item>
      <title>Summarizing the data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Summarizing-the-data/m-p/35486#M8760</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I have a dataset like&lt;BR /&gt;
&lt;BR /&gt;
anlt lbno&lt;BR /&gt;
&lt;BR /&gt;
aaa  1&lt;BR /&gt;
aaa  2&lt;BR /&gt;
aaa  4&lt;BR /&gt;
bbb  2&lt;BR /&gt;
bbb  3&lt;BR /&gt;
bbb  4&lt;BR /&gt;
ccc  1&lt;BR /&gt;
ccc  2&lt;BR /&gt;
ccc  3&lt;BR /&gt;
ccc  4&lt;BR /&gt;
&lt;BR /&gt;
I want it to be printed in excel as&lt;BR /&gt;
&lt;BR /&gt;
anlt lbno&lt;BR /&gt;
&lt;BR /&gt;
aaa 1, 2, 4&lt;BR /&gt;
bbb 2, 3, 4&lt;BR /&gt;
ccc 1, 2, 3, 4&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance,&lt;BR /&gt;
Sandhya.</description>
      <pubDate>Tue, 29 Dec 2009 19:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Summarizing-the-data/m-p/35486#M8760</guid>
      <dc:creator>Sandhya</dc:creator>
      <dc:date>2009-12-29T19:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing the data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Summarizing-the-data/m-p/35487#M8761</link>
      <description>Use PROC TRANSPOSE to create a new SAS file and then use a DATA step to concatenate (using CATX function) the transposed values.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Tue, 29 Dec 2009 20:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Summarizing-the-data/m-p/35487#M8761</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-29T20:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing the data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Summarizing-the-data/m-p/35488#M8762</link>
      <description>The solution below uses SAS/ACCESS for PC Files. In case there is no license for this module: Create a csv file.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick&lt;BR /&gt;
&lt;BR /&gt;
data have;&lt;BR /&gt;
infile datalines;&lt;BR /&gt;
input anlt $ lbno;&lt;BR /&gt;
datalines;&lt;BR /&gt;
aaa 1&lt;BR /&gt;
aaa 2&lt;BR /&gt;
aaa 4&lt;BR /&gt;
bbb 2&lt;BR /&gt;
bbb 3&lt;BR /&gt;
bbb 4&lt;BR /&gt;
ccc 1&lt;BR /&gt;
ccc 2&lt;BR /&gt;
ccc 3&lt;BR /&gt;
ccc 4&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
libname outxls excel 'c:\temp\want.xls' ;&lt;BR /&gt;
data outxls.wantsheet(keep=anlt lbno_str);&lt;BR /&gt;
  set have;&lt;BR /&gt;
  by anlt;&lt;BR /&gt;
  retain lbno_str;&lt;BR /&gt;
  length lbno_str $ 100;&lt;BR /&gt;
  if first.anlt then&lt;BR /&gt;
   lbno_str=cats(lbno);&lt;BR /&gt;
  else&lt;BR /&gt;
   lbno_str=cats(lbno_str,',',lbno);&lt;BR /&gt;
  if last.anlt then&lt;BR /&gt;
    output;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
libname outxls;</description>
      <pubDate>Tue, 29 Dec 2009 21:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Summarizing-the-data/m-p/35488#M8762</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-12-29T21:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Summarizing the data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Summarizing-the-data/m-p/35489#M8763</link>
      <description>Thank you.  It was very helpful.&lt;BR /&gt;
&lt;BR /&gt;
Sandhya.</description>
      <pubDate>Tue, 29 Dec 2009 21:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Summarizing-the-data/m-p/35489#M8763</guid>
      <dc:creator>Sandhya</dc:creator>
      <dc:date>2009-12-29T21:20:05Z</dc:date>
    </item>
  </channel>
</rss>

