<?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: Transposing Dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transposing-Dataset/m-p/159724#M31112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u PGStat. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2014 05:43:59 GMT</pubDate>
    <dc:creator>sss</dc:creator>
    <dc:date>2014-02-04T05:43:59Z</dc:date>
    <item>
      <title>Transposing Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transposing-Dataset/m-p/159722#M31110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Excel file,Raw_data sheet contains the raw data and output sheet contains the desired output i am looking for.&lt;/P&gt;&lt;P&gt;I want to transpose the dataset, but i am not able to do that with normal trans pose procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for example, For autos variable i have total 4 row with 1 as value and the count will be 4. Next total price will be 2.11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similarly i want to Three variable auto , book, Intent which have count and total price for the.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The raw data and output is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will be very kindful for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 18:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transposing-Dataset/m-p/159722#M31110</guid>
      <dc:creator>sss</dc:creator>
      <dc:date>2014-02-02T18:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transposing-Dataset/m-p/159723#M31111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to do it with SQL is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;create table output as&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select "Autos" as Query, sum(autos*DSQ) as DSQsum, sum(autos*price) as PriceSum from have&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;union all &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select "Intent", sum(Intent*DSQ), sum(Intent*price) from have&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;union all&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select "Book", sum(Book*DSQ), sum(Book*price) from have;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;select * from output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 23:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transposing-Dataset/m-p/159723#M31111</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-02-02T23:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transposing-Dataset/m-p/159724#M31112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u PGStat. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 05:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transposing-Dataset/m-p/159724#M31112</guid>
      <dc:creator>sss</dc:creator>
      <dc:date>2014-02-04T05:43:59Z</dc:date>
    </item>
  </channel>
</rss>

