<?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 Re: base sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/base-sas/m-p/340166#M77720</link>
    <description>&lt;P&gt;Here's a straightforward approach:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;by subid;&lt;/P&gt;
&lt;P&gt;length all_names $ 200;&lt;/P&gt;
&lt;P&gt;if first.subid then all_names = names;&lt;/P&gt;
&lt;P&gt;else all_names = catx(',' , all_names, names);&lt;/P&gt;
&lt;P&gt;if last.subid;&lt;/P&gt;
&lt;P&gt;retain all_names;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only thing I would warn you about is to consider whether this is really a good step to take. &amp;nbsp;If you merely want to print the data in this new form then go right ahead. &amp;nbsp;But if you are analyzing or summarizing the data for some other purpose, SAS has many tools that let you process multiple observations per SUBID. &amp;nbsp;It may not be necessary to change the form of the data.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Mar 2017 13:48:17 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-03-11T13:48:17Z</dc:date>
    <item>
      <title>base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/base-sas/m-p/340164#M77718</link>
      <description>&lt;P&gt;Hii&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following data set&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;subid &amp;nbsp; names&lt;/P&gt;&lt;P&gt;001 &amp;nbsp; &amp;nbsp; &amp;nbsp; ruby&lt;/P&gt;&lt;P&gt;001 &amp;nbsp; &amp;nbsp; &amp;nbsp; ricky&lt;/P&gt;&lt;P&gt;001 &amp;nbsp; &amp;nbsp; &amp;nbsp; subbu&lt;/P&gt;&lt;P&gt;002 &amp;nbsp; &amp;nbsp; &amp;nbsp; kee&lt;/P&gt;&lt;P&gt;002 &amp;nbsp; &amp;nbsp; &amp;nbsp; chai&lt;/P&gt;&lt;P&gt;003 &amp;nbsp; &amp;nbsp; &amp;nbsp; deep&lt;/P&gt;&lt;P&gt;004 &amp;nbsp; &amp;nbsp; &amp;nbsp; suri&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need output as&lt;/P&gt;&lt;P&gt;subid &amp;nbsp; &amp;nbsp;names&lt;/P&gt;&lt;P&gt;001 &amp;nbsp; &amp;nbsp; &amp;nbsp; ruby,ricky,subbu&lt;/P&gt;&lt;P&gt;002 &amp;nbsp; &amp;nbsp; &amp;nbsp; kee,chai&lt;/P&gt;&lt;P&gt;003 &amp;nbsp; &amp;nbsp; &amp;nbsp; deep&lt;/P&gt;&lt;P&gt;004 &amp;nbsp; &amp;nbsp; &amp;nbsp; suri&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 12:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/base-sas/m-p/340164#M77718</guid>
      <dc:creator>molla</dc:creator>
      <dc:date>2017-03-11T12:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: base sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/base-sas/m-p/340166#M77720</link>
      <description>&lt;P&gt;Here's a straightforward approach:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;by subid;&lt;/P&gt;
&lt;P&gt;length all_names $ 200;&lt;/P&gt;
&lt;P&gt;if first.subid then all_names = names;&lt;/P&gt;
&lt;P&gt;else all_names = catx(',' , all_names, names);&lt;/P&gt;
&lt;P&gt;if last.subid;&lt;/P&gt;
&lt;P&gt;retain all_names;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only thing I would warn you about is to consider whether this is really a good step to take. &amp;nbsp;If you merely want to print the data in this new form then go right ahead. &amp;nbsp;But if you are analyzing or summarizing the data for some other purpose, SAS has many tools that let you process multiple observations per SUBID. &amp;nbsp;It may not be necessary to change the form of the data.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2017 13:48:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/base-sas/m-p/340166#M77720</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-03-11T13:48:17Z</dc:date>
    </item>
  </channel>
</rss>

