<?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 Summary Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325427#M17746</link>
    <description>&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;I’m having issues getting report to come out as desired. Below is a snippet of what the data looks like then below it is a snapshot of what I’d like the report to look like. It seemed to me that it would be simple, but I can’t seem to get it to group by state or to figure out how to count the number of observations by state. Any help would literally make my week. I basically need it to group by everything, but separated by state. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I've looked up tons on proc freq, summary, sql, print, etc. Help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="pic1.png" alt="pic1.png" src="https://communities.sas.com/t5/image/serverpage/image-id/6767i9F3EB2A7B431F70A/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2017 19:15:53 GMT</pubDate>
    <dc:creator>jess11111111</dc:creator>
    <dc:date>2017-01-17T19:15:53Z</dc:date>
    <item>
      <title>Summary Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325427#M17746</link>
      <description>&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;I’m having issues getting report to come out as desired. Below is a snippet of what the data looks like then below it is a snapshot of what I’d like the report to look like. It seemed to me that it would be simple, but I can’t seem to get it to group by state or to figure out how to count the number of observations by state. Any help would literally make my week. I basically need it to group by everything, but separated by state. &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I've looked up tons on proc freq, summary, sql, print, etc. Help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="pic1.png" alt="pic1.png" src="https://communities.sas.com/t5/image/serverpage/image-id/6767i9F3EB2A7B431F70A/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 19:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325427#M17746</guid>
      <dc:creator>jess11111111</dc:creator>
      <dc:date>2017-01-17T19:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325454#M17747</link>
      <description>&lt;P&gt;If you provide data in the form of a data step (not a picture, most of us do not have the time to enter data from sratch) then we can test code. Instructions here will show how to create datastep code from a SAS data set: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What would N_state be for the shown example input data?&lt;/P&gt;
&lt;P&gt;In the final report is Amount the max, min, mean of the amount within the State and amtid combination?&lt;/P&gt;
&lt;P&gt;Same question for Percent and N_Payments&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And show the values of the SUMs for the total row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 20:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325454#M17747</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-17T20:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325496#M17751</link>
      <description>&lt;P&gt;The original dataset is very large...so I'm sitting here waiting for that macro to run. In the meantime:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;N_State would be the count for that state within that AMTID. The Amount column is a set amount that correlates to both amtid and number of payments. I.e. no amtid has more than one number of payments or amount. This goes for percent as well. As far as the last row for total goes, I'm looking most importantly to sum the occurences of state within that amtid and to&amp;nbsp;sum "amount."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For what I gave you, sum of state would be 5, &amp;nbsp;amount would be 14800, and percent 26.99.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 21:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325496#M17751</guid>
      <dc:creator>jess11111111</dc:creator>
      <dc:date>2017-01-17T21:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325524#M17753</link>
      <description>&lt;P&gt;If your original data is large you may want to make an example set:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data example;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set mylarge data (obs=50);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;and then create the data step from that set.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 00:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325524#M17753</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-18T00:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325546#M17756</link>
      <description>Hi,&lt;BR /&gt;  I'm not sure about what you show above. For the SC rows only, I get 7,400 not 14,800:&lt;BR /&gt;1800+1800+1400+1000+1400 = 7,400&lt;BR /&gt;&lt;BR /&gt;Wouldn't the sum for SC be only the SC rows?&lt;BR /&gt;&lt;BR /&gt;  Doing some desk checking. It looks like a PROC TABULATE output or a PROC REPORT output to me. But without a test dataset, no one is likely to make data and write a report program, too.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 18 Jan 2017 02:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325546#M17756</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-01-18T02:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325548#M17757</link>
      <description>Thanks, I completely understand, just wasn't able to get the data in a&lt;BR /&gt;workable format today and it's also sensitive so I'd have to fake it.&lt;BR /&gt;Anyway, I figured it out with proc tabulate. I wasn't writing my table&lt;BR /&gt;statement correctly.&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Wed, 18 Jan 2017 02:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325548#M17757</guid>
      <dc:creator>jess11111111</dc:creator>
      <dc:date>2017-01-18T02:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Summary Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325696#M17758</link>
      <description>&lt;P&gt;Here's the code I ended up using, in case it's ever useful to someone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;tabulate&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=*** &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;9.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;class&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; state amtid; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; amount percent number_of_payments; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; state*(amtid all=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Total'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;), &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;N amount percent*mean number_of_payments*mean=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;' '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 14:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summary-Report/m-p/325696#M17758</guid>
      <dc:creator>jess11111111</dc:creator>
      <dc:date>2017-01-18T14:57:38Z</dc:date>
    </item>
  </channel>
</rss>

