<?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 Proc Report Supressing Summarize in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Supressing-Summarize/m-p/356138#M83477</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc report data=results2;&lt;BR /&gt; column Name Agencyorcompany State location_state ans_per;&lt;BR /&gt; define Location_state / group;&lt;BR /&gt; define Agencyorcompany / 'Agency or Compary';&lt;BR /&gt; define location_state / 'IP Location';&lt;BR /&gt; define ans_per / 'Percent Answered' f=percent7.0;&lt;BR /&gt; break after Location_state/summarize skip page;&lt;BR /&gt; compute after Location_state;&lt;BR /&gt;   Location_state="Total %";&lt;BR /&gt; endcomp;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running the code above but am running into issues with the summarize option. In the above code I am summarizing percentages by state. A few of the group only have one value so I would like to avoid summarizing those group. Any idea how I would supress the summary variable for those groups? I could use proc print but it forces me include the grand total which I do not want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2017 21:31:38 GMT</pubDate>
    <dc:creator>michelconn</dc:creator>
    <dc:date>2017-05-04T21:31:38Z</dc:date>
    <item>
      <title>Proc Report Supressing Summarize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Supressing-Summarize/m-p/356138#M83477</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc report data=results2;&lt;BR /&gt; column Name Agencyorcompany State location_state ans_per;&lt;BR /&gt; define Location_state / group;&lt;BR /&gt; define Agencyorcompany / 'Agency or Compary';&lt;BR /&gt; define location_state / 'IP Location';&lt;BR /&gt; define ans_per / 'Percent Answered' f=percent7.0;&lt;BR /&gt; break after Location_state/summarize skip page;&lt;BR /&gt; compute after Location_state;&lt;BR /&gt;   Location_state="Total %";&lt;BR /&gt; endcomp;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running the code above but am running into issues with the summarize option. In the above code I am summarizing percentages by state. A few of the group only have one value so I would like to avoid summarizing those group. Any idea how I would supress the summary variable for those groups? I could use proc print but it forces me include the grand total which I do not want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 21:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Supressing-Summarize/m-p/356138#M83477</guid>
      <dc:creator>michelconn</dc:creator>
      <dc:date>2017-05-04T21:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Supressing Summarize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Supressing-Summarize/m-p/356236#M83520</link>
      <description>&lt;P&gt;You can control the values to be displayed in a compute block.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing=' ';
proc report data=sashelp.class(where=(age gt 14));
   column age name  height=ht_n height;
   define age / order;
   define name / display;
   define ht_n / n noprint;
   define height / mean;
   break after age / summarize;
   compute after age;
      if ht_n &amp;lt;2 then do;
         height.mean=.;
         age=.;
      end;
   endcomp;
   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There is only one 16 year old in the CLASS data.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 06:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Supressing-Summarize/m-p/356236#M83520</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2017-05-05T06:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Supressing Summarize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Supressing-Summarize/m-p/356442#M83582</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data results2;
	set results2;
	temp=location_state;
proc report data=results2;
	column Name Agencyorcompany State location_state temp ans_per ans_per=ans_per_n;
	define ans_per_n / n noprint;
	define Agencyorcompany / 'Agency or Compary';
	define location_state / group noprint;
	define temp / 'IP Location State';
	define ans_per / 'Percent Answered' f=percent7.0 sum;
	break after Location_state/summarize skip page;
	compute after Location_state;
		temp="Total %";
		if ans_per_n &amp;lt; 2 then do;
			ans_per.sum=.;
			temp="";
		end;
	endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks, that almost got me where I want. I made it so that if ans_per has only one row the summarize row displays nothing. Is there a way to make it so there is no summarize row?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I am using the page option each group is printing out as an individual table and would like to remove the summarize row for groups with only one row.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 15:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Supressing-Summarize/m-p/356442#M83582</guid>
      <dc:creator>michelconn</dc:creator>
      <dc:date>2017-05-05T15:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Supressing Summarize</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Supressing-Summarize/m-p/356462#M83584</link>
      <description>&lt;P&gt;I can't test or research right now but you might be able to add something like the following to your compute block.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;call define(_row_,'style','style={cellheight=.1in}');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This won't solve the problem.&amp;nbsp; You will need to specify some other attributes perhaps eliminate the margins.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2017 16:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Supressing-Summarize/m-p/356462#M83584</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2017-05-05T16:17:01Z</dc:date>
    </item>
  </channel>
</rss>

