<?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: Getting all the values in a single variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-all-the-values-in-a-single-variable/m-p/255581#M48823</link>
    <description>&lt;P&gt;Please post what you'd like the output to be, for clarification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also...look at the&amp;nbsp;scan function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2016 16:59:11 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-03-09T16:59:11Z</dc:date>
    <item>
      <title>Getting all the values in a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-all-the-values-in-a-single-variable/m-p/255576#M48821</link>
      <description>&lt;P&gt;I Have a Data Like below table. I Just Had only name and Grade. Need to create All_Grades(Individual Grades should come seperated by "-")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Name &amp;nbsp; &amp;nbsp;Grade &amp;nbsp; &amp;nbsp; &amp;nbsp;All_Grades&lt;BR /&gt;Alfred &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A-B-C-A-D&lt;BR /&gt;Alfred &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A-B-C-A-D&lt;BR /&gt;Alfred &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A-B-C-A-D&lt;BR /&gt;Alfred &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A-B-C-A-D&lt;BR /&gt;Alfred &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;D &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A-B-C-A-D&lt;BR /&gt;James &amp;nbsp; &amp;nbsp; &amp;nbsp; B &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B-C-A&lt;BR /&gt;James &amp;nbsp; &amp;nbsp; &amp;nbsp; C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B-C-A&lt;BR /&gt;James &amp;nbsp; &amp;nbsp; &amp;nbsp; A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; B-C-A&lt;BR /&gt;Philip &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; D &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; D-C-A-A&lt;BR /&gt;Philip &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; D-C-A-A&lt;BR /&gt;Philip &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; D-C-A-A&lt;BR /&gt;Philip &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; D-C-A-A&lt;BR /&gt;William &amp;nbsp; &amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A-A-C&lt;BR /&gt;William &amp;nbsp; &amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A-A-C&lt;BR /&gt;William &amp;nbsp; &amp;nbsp; &amp;nbsp;C &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A-A-C&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 16:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-all-the-values-in-a-single-variable/m-p/255576#M48821</guid>
      <dc:creator>Daya87</dc:creator>
      <dc:date>2016-03-09T16:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting all the values in a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-all-the-values-in-a-single-variable/m-p/255581#M48823</link>
      <description>&lt;P&gt;Please post what you'd like the output to be, for clarification.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also...look at the&amp;nbsp;scan function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 16:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-all-the-values-in-a-single-variable/m-p/255581#M48823</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-09T16:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Getting all the values in a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-all-the-values-in-a-single-variable/m-p/255586#M48827</link>
      <description>&lt;P&gt;Here's one way, assuming that your data is sorted by NAME:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;length all_grades $ 20;&lt;/P&gt;
&lt;P&gt;do until (last.name);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; by name;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; all_grades = catx('-', all_grades, grade);&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;do until (last.name);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; by name;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 17:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-all-the-values-in-a-single-variable/m-p/255586#M48827</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-03-09T17:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting all the values in a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-all-the-values-in-a-single-variable/m-p/255611#M48845</link>
      <description>&lt;P&gt;Yes, It's working Fine. Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 18:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-all-the-values-in-a-single-variable/m-p/255611#M48845</guid>
      <dc:creator>Daya87</dc:creator>
      <dc:date>2016-03-09T18:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Getting all the values in a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-all-the-values-in-a-single-variable/m-p/255688#M48881</link>
      <description>&lt;P&gt;Please mark the appropriate response as your accepted solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This helps other users know that a correct or acceptable answer for a given problem has been posted.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 22:41:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-all-the-values-in-a-single-variable/m-p/255688#M48881</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-09T22:41:15Z</dc:date>
    </item>
  </channel>
</rss>

