<?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 rearranging data in sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/rearranging-data-in-sas/m-p/16407#M2274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2&gt;&lt;/H2&gt;&lt;P class="jive-answer-type jive-answer-type-notanswered font-color-meta"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have a data in sas like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Category Response&lt;/P&gt;&lt;P&gt;A 50% - 70%&lt;/P&gt;&lt;P&gt;A 0%&lt;/P&gt;&lt;P&gt;A 0%&lt;/P&gt;&lt;P&gt;A More than 70%&lt;/P&gt;&lt;P&gt;B More than 70%&lt;/P&gt;&lt;P&gt;B 1% - 49%&lt;/P&gt;&lt;P&gt;B 0%&lt;/P&gt;&lt;P&gt;B 0%&lt;/P&gt;&lt;P&gt;B 50% -70%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my result data to look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response A B&lt;/P&gt;&lt;P&gt;0% 2 (50%) 2 (40%)&lt;/P&gt;&lt;P&gt;1% -49% 0(0%) 1 (20%)&lt;/P&gt;&lt;P&gt;50%- 70% 1 (25%) 1 (20%)&lt;/P&gt;&lt;P&gt;More than 70% 1 (25%) 1 (20%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation of result data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two categories A (=4)and B (=5) and there are four different types of response 0%, 1% -49%, 50% -70% and more than 70%.&lt;/P&gt;&lt;P&gt;In category A, only two out of four responded 0%, thus result is 2 (50%). Similarly in A, on;y one out of four responded 50-70%, thus result is 1 (25%). &lt;/P&gt;&lt;P&gt;Same as B for each response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be grateful for your time reagarding the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2011 03:30:48 GMT</pubDate>
    <dc:creator>Nupur20</dc:creator>
    <dc:date>2011-09-26T03:30:48Z</dc:date>
    <item>
      <title>rearranging data in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rearranging-data-in-sas/m-p/16407#M2274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2&gt;&lt;/H2&gt;&lt;P class="jive-answer-type jive-answer-type-notanswered font-color-meta"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I have a data in sas like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Category Response&lt;/P&gt;&lt;P&gt;A 50% - 70%&lt;/P&gt;&lt;P&gt;A 0%&lt;/P&gt;&lt;P&gt;A 0%&lt;/P&gt;&lt;P&gt;A More than 70%&lt;/P&gt;&lt;P&gt;B More than 70%&lt;/P&gt;&lt;P&gt;B 1% - 49%&lt;/P&gt;&lt;P&gt;B 0%&lt;/P&gt;&lt;P&gt;B 0%&lt;/P&gt;&lt;P&gt;B 50% -70%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my result data to look like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response A B&lt;/P&gt;&lt;P&gt;0% 2 (50%) 2 (40%)&lt;/P&gt;&lt;P&gt;1% -49% 0(0%) 1 (20%)&lt;/P&gt;&lt;P&gt;50%- 70% 1 (25%) 1 (20%)&lt;/P&gt;&lt;P&gt;More than 70% 1 (25%) 1 (20%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation of result data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two categories A (=4)and B (=5) and there are four different types of response 0%, 1% -49%, 50% -70% and more than 70%.&lt;/P&gt;&lt;P&gt;In category A, only two out of four responded 0%, thus result is 2 (50%). Similarly in A, on;y one out of four responded 50-70%, thus result is 1 (25%). &lt;/P&gt;&lt;P&gt;Same as B for each response. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be grateful for your time reagarding the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 03:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rearranging-data-in-sas/m-p/16407#M2274</guid>
      <dc:creator>Nupur20</dc:creator>
      <dc:date>2011-09-26T03:30:48Z</dc:date>
    </item>
    <item>
      <title>rearranging data in sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rearranging-data-in-sas/m-p/16408#M2275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc freq ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; tables response*category / norow nopercent ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 05:15:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rearranging-data-in-sas/m-p/16408#M2275</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-09-26T05:15:18Z</dc:date>
    </item>
  </channel>
</rss>

