<?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: Proc Report - Only summarize one column in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Only-summarize-one-column/m-p/845236#M26066</link>
    <description>&lt;P&gt;Thank you for providing the three different examples. Table 3 is exactly what I was looking to do, but having the other two examples with respective code helps me understand the proc report syntax a little more. I had attempted to use COMPUTE block at some point (in my trials and tribulations) but this paints a picture of just how dynamic COMPUTE can be. Thank you!&lt;/P&gt;</description>
    <pubDate>Sat, 19 Nov 2022 01:01:56 GMT</pubDate>
    <dc:creator>Krysia24</dc:creator>
    <dc:date>2022-11-19T01:01:56Z</dc:date>
    <item>
      <title>Proc Report - Only summarize one column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Only-summarize-one-column/m-p/844977#M26059</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finding proc report syntax to be a bit tricky. I am attempting to count a variable (below - I am attempting to count the caseid variable so that I have the number of cases in each employee's queue) and add it to the summary line. I couldn't come up with a way to just display the count of the caseid variable in the summary line without also creating a column for it. The summary line also the includes the count of the days variable, which I do not need and would prefer to exclude. Is there a better way to be doing this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my current code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc report nowd data=test;&lt;BR /&gt;column employee caseid n days ;&lt;BR /&gt;define employee/ group ;&lt;BR /&gt;define n / "count";&lt;BR /&gt;break after caseid / summarize Ol UL;&lt;BR /&gt;rbreak after /summarize;&lt;/P&gt;&lt;P&gt;run;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t;TR&gt;&lt;TD&gt;Jane Doe&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping more for this - days is not including in the summary line and ideally (though not as crucial) count of cases would be hidden as a column.&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Employee&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;CaseID&lt;/TD&gt;&lt;TD&gt;Days&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Michael Smith&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1234-55&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1256-99&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Michael Smith&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jane Doe&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;7890-10&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2233-55&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;6789-12&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Jane Doe&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 17 Nov 2022 21:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Only-summarize-one-column/m-p/844977#M26059</guid>
      <dc:creator>Krysia24</dc:creator>
      <dc:date>2022-11-17T21:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Only summarize one column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Only-summarize-one-column/m-p/844994#M26060</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; What you describe is possible, but will take a COMPUTE block to accomplish. Since you did not supply any data, I used some fake data and I think the report you want is the #3 report shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1668723722807.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77420i91B44EBF54DF2AC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1668723722807.png" alt="Cynthia_sas_0-1668723722807.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Some of your options (like OL and UL) did not make sense for ODS destinations because those are LISTING only options. Also, I put the text "Total Cases" on the last RBREAK row to make it clear what the number was under the CASEID cell. Most of the changes happen in the COMPUTE block for days.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 22:23:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Only-summarize-one-column/m-p/844994#M26060</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-11-17T22:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Only summarize one column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Only-summarize-one-column/m-p/845236#M26066</link>
      <description>&lt;P&gt;Thank you for providing the three different examples. Table 3 is exactly what I was looking to do, but having the other two examples with respective code helps me understand the proc report syntax a little more. I had attempted to use COMPUTE block at some point (in my trials and tribulations) but this paints a picture of just how dynamic COMPUTE can be. Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 19 Nov 2022 01:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Only-summarize-one-column/m-p/845236#M26066</guid>
      <dc:creator>Krysia24</dc:creator>
      <dc:date>2022-11-19T01:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report - Only summarize one column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Only-summarize-one-column/m-p/845377#M26073</link>
      <description>Hi:&lt;BR /&gt;  These 2 papers have some more cool examples of PROC REPORT and COMPUTE blocks:&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings17/SAS0431-2017.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings17/SAS0431-2017.pdf&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings14/SAS388-2014.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings14/SAS388-2014.pdf&lt;/A&gt;&lt;BR /&gt;Enjoy!&lt;BR /&gt;Cynthia&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Nov 2022 02:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Only-summarize-one-column/m-p/845377#M26073</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-11-21T02:32:21Z</dc:date>
    </item>
  </channel>
</rss>

