<?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 lots of totals/statistics at once in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Getting-lots-of-totals-statistics-at-once/m-p/191031#M48121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want unique counts I recommend proc sql. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select station, count(distinct ssn) as unique_ssn, count(distinct invoice_number) as unique_invoice, count(*) as num_line, sum(amounts) as total_dollar&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;group by station;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2014 22:56:48 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-04-23T22:56:48Z</dc:date>
    <item>
      <title>Getting lots of totals/statistics at once</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-lots-of-totals-statistics-at-once/m-p/191030#M48120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following fields and want a report at the end with a lot of counts and sums:&lt;/P&gt;&lt;P&gt;station, ssn, invoice number, line items, amounts.&lt;/P&gt;&lt;P&gt;I want a report with individual stations and count of unique ssn, count of unique invoice numbers, count of line items and total dollar amounts.&lt;/P&gt;&lt;P&gt;How can I do this???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 21:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-lots-of-totals-statistics-at-once/m-p/191030#M48120</guid>
      <dc:creator>Marilyn</dc:creator>
      <dc:date>2014-04-23T21:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Getting lots of totals/statistics at once</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-lots-of-totals-statistics-at-once/m-p/191031#M48121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want unique counts I recommend proc sql. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select station, count(distinct ssn) as unique_ssn, count(distinct invoice_number) as unique_invoice, count(*) as num_line, sum(amounts) as total_dollar&lt;/P&gt;&lt;P&gt;from have&lt;/P&gt;&lt;P&gt;group by station;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 22:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-lots-of-totals-statistics-at-once/m-p/191031#M48121</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-04-23T22:56:48Z</dc:date>
    </item>
  </channel>
</rss>

