<?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 : Removing one column for the rbreak summarize in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Removing-one-column-for-the-rbreak-summarize/m-p/274687#M16006</link>
    <description>&lt;P&gt;I didnt know you could computer the "after" row. &amp;nbsp;thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one is exactly what I wanted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2016 14:22:39 GMT</pubDate>
    <dc:creator>morglum</dc:creator>
    <dc:date>2016-06-02T14:22:39Z</dc:date>
    <item>
      <title>Proc Report : Removing one column for the rbreak summarize</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Removing-one-column-for-the-rbreak-summarize/m-p/274430#M15989</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I am building a Proc Report and I hit a snag.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say I have 12 lines (one per month), and 2 metrics : a flow (sales) and a stock (debt at the end of the month).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I add a total line using rbreak /summarize.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This generates a total line. &amp;nbsp;Total sales for the year makes sense. &amp;nbsp;Total monthly debt doesnt. &amp;nbsp;How do I remove the total monthly debt from the summary?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 17:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Removing-one-column-for-the-rbreak-summarize/m-p/274430#M15989</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2016-06-01T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report : Removing one column for the rbreak summarize</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Removing-one-column-for-the-rbreak-summarize/m-p/274435#M15990</link>
      <description>&lt;P&gt;It helps to show the code you are using as there may be interactions between various DEFINE and COMPUTE blocks and so we have some idea what role each variable is playing. Otherwise we are guessing a whole lot.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 17:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Removing-one-column-for-the-rbreak-summarize/m-p/274435#M15990</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-06-01T17:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report : Removing one column for the rbreak summarize</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Removing-one-column-for-the-rbreak-summarize/m-p/274441#M15991</link>
      <description>&lt;P&gt;For example, below I want to sum the debt at the end of the month for all users, but I dont want to sum the debt across different months;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
do month= 1 to 12;
	do user = 1 to 3;
	sales = round(5*ranuni(1));
	debt_at_end_of_month = round(10*ranuni(1));
	output;
	end;
end;
run;

proc report data=test;
column 
	month 
	sales
	debt_at_end_of_month;
define month / group;
define sales /analysis sum;
define debt_at_end_of_month /analysis sum;
rbreak after /summarize;
run;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jun 2016 17:56:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Removing-one-column-for-the-rbreak-summarize/m-p/274441#M15991</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2016-06-01T17:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report : Removing one column for the rbreak summarize</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Removing-one-column-for-the-rbreak-summarize/m-p/274490#M15998</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm not sure I quite understand what you're asking in your first example, there is only the summary at the end of the report, not after every month. But if you put USER variable on the report, then you could break after every month. But at any rate, you can suppress what you see by using the COMPUTE block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I like to see the same numbers every time I run a report if I'm testing so I just changed the fake data step.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  infile datalines dlm=',' dsd;
  input month user sales debt_at_end_of_month;
return;
datalines;
1,1,1,10
1,2,2,3
1,3,5,10
2,1,3,5
2,2,0,1
2,3,4,5
3,1,4,1
3,2,5,3
3,3,1,7
4,1,5,2
4,2,3,4
4,3,3,3
5,1,2,8
5,2,3,6
5,3,3,4
6,1,4,5
6,2,5,9
6,3,3,3
7,1,2,5
7,2,3,2
7,3,1,9
8,1,1,9
8,2,5,6
8,3,0,1
9,1,3,4
9,2,1,7
9,3,2,1
10,1,2,2
10,2,3,7
10,3,2,0
11,1,3,3
11,2,0,7
11,3,5,4
12,1,5,7
12,2,1,2
12,3,1,6
;
run;
 

options missing=' ';
proc report data=test 
  style(summary)=Header;
column month sales debt_at_end_of_month;
define month / group;
define sales /analysis sum;
define debt_at_end_of_month /analysis sum;
compute after;
  debt_at_end_of_month.sum = .;
endcomp;
rbreak after /summarize;
run;

proc report data=test 
  style(summary)=Header;
column month user sales debt_at_end_of_month;
define month / group;
define user /group;
define sales /analysis sum;
define debt_at_end_of_month /analysis sum;
break after month / summarize;
rbreak after /summarize;
compute after;
  debt_at_end_of_month.sum = .;
endcomp;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jun 2016 21:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Removing-one-column-for-the-rbreak-summarize/m-p/274490#M15998</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-06-01T21:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report : Removing one column for the rbreak summarize</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Removing-one-column-for-the-rbreak-summarize/m-p/274687#M16006</link>
      <description>&lt;P&gt;I didnt know you could computer the "after" row. &amp;nbsp;thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first one is exactly what I wanted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 14:22:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Removing-one-column-for-the-rbreak-summarize/m-p/274687#M16006</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2016-06-02T14:22:39Z</dc:date>
    </item>
  </channel>
</rss>

