<?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: Differences between Proc Report and Proc Tabulate in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Differences-between-Proc-Report-and-Proc-Tabulate/m-p/3817#M1610</link>
    <description>Hi:&lt;BR /&gt;
  There are 2 different ways to change the ALL summary:&lt;BR /&gt;
1) change the header for "all"&lt;BR /&gt;
2) change the data cells for the summary&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
table country * product all *{s={font_size=16pt background=yellow}},&lt;BR /&gt;
      region*Sum*(predict actual)*{s={background=salef.}}&lt;BR /&gt;
  / style_precedence=row;&lt;BR /&gt;
keylabel Sum='Sales'&lt;BR /&gt;
         All='Total';&lt;BR /&gt;
keyword ALL / style={background=purple foreground=white};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
The KEYWORD statement will change the style of the header label for ALL and the style in the table statement (crossed with ALL) will change the data cells in the summary produced by ALL. In addition, since the style crossing happens in the row dimension, you want the style of the row to take precedence over the style of the column -- for the cell where row and column intersect.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Fri, 05 Sep 2008 02:55:05 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-09-05T02:55:05Z</dc:date>
    <item>
      <title>Differences between Proc Report and Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Differences-between-Proc-Report-and-Proc-Tabulate/m-p/3814#M1607</link>
      <description>Could any tell me the major differences between Proc Report and Proc Tabulate.&lt;BR /&gt;
And also how could i highlight a cell using proc report and proc tabulate.&lt;BR /&gt;
&lt;BR /&gt;
Thanks &amp;amp; Regards,&lt;BR /&gt;
Siddhartha</description>
      <pubDate>Mon, 16 Jul 2007 06:12:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Differences-between-Proc-Report-and-Proc-Tabulate/m-p/3814#M1607</guid>
      <dc:creator>Siddhartha</dc:creator>
      <dc:date>2007-07-16T06:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Differences between Proc Report and Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Differences-between-Proc-Report-and-Proc-Tabulate/m-p/3815#M1608</link>
      <description>Proc Report and Proc Tabulate can both be used to create summary tables. Proc Report has the added feature of being able to create detail tables, as well. Proc Report has some of the power of a DATA step program, in that REPORT allows you to calculate a new report item (like BONUSAMT) in a COMPUTE block -- something which TABULATE will not do.&lt;BR /&gt;
   &lt;BR /&gt;
It's easier, or maybe just different, to get many crossings in the row and column dimension with TABULATE. TABULATE produces 3 dimensions of reports -- PAGE, ROW and COLUMN dimension using a TABLE statement along with a CLASS and VAR statement. REPORT does everything with a COLUMN statement and DEFINE statements, along with COMPUTE blocks. &lt;BR /&gt;
  &lt;BR /&gt;
With PROC REPORT, you can write lines between groups (such as "Good job on Sales this quarter, Department 99" or "Focus on improving sales, Department 45") with the LINE statement-- whereas with TABULATE, you cannot do this.&lt;BR /&gt;
 &lt;BR /&gt;
The following code example shows approximately the same table for both REPORT and TABULATE, the basic highlighting of PREDICT and ACTUAL is done, in this case, with a user-defined format. With PROC REPORT, you could also highlight a cell, or an entire row using the CALL DEFINE statement, too.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc format;&lt;BR /&gt;
  value salef 21000-22000 = 'yellow'&lt;BR /&gt;
              22000&amp;lt;-23000 = 'pink';&lt;BR /&gt;
run;&lt;BR /&gt;
  &lt;BR /&gt;
ods listing close;&lt;BR /&gt;
  &lt;BR /&gt;
ods html file='hilight.html' style=sasweb;&lt;BR /&gt;
 &lt;BR /&gt;
title 'Proc Report';&lt;BR /&gt;
proc report data=sashelp.prdsale nowd;&lt;BR /&gt;
  column country product region,('Sales' predict actual);&lt;BR /&gt;
  define country /group;&lt;BR /&gt;
  define product /group;&lt;BR /&gt;
  define region /across ;&lt;BR /&gt;
  define predict / sum 'Predicted'&lt;BR /&gt;
         style(column)={background=salef.};&lt;BR /&gt;
  define actual /sum 'Actual'&lt;BR /&gt;
         style(column)={background=salef.};&lt;BR /&gt;
  rbreak after / summarize;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
title 'Proc Tabulate';&lt;BR /&gt;
proc tabulate data=sashelp.prdsale f=dollar12.2;&lt;BR /&gt;
class country region product;&lt;BR /&gt;
var predict actual ;&lt;BR /&gt;
table country * product all,&lt;BR /&gt;
      region*Sum*(predict actual)*{s={background=salef.}};&lt;BR /&gt;
keylabel Sum='Sales' &lt;BR /&gt;
         All='Total';&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Mon, 16 Jul 2007 10:18:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Differences-between-Proc-Report-and-Proc-Tabulate/m-p/3815#M1608</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-07-16T10:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Differences between Proc Report and Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Differences-between-Proc-Report-and-Proc-Tabulate/m-p/3816#M1609</link>
      <description>Question...&lt;BR /&gt;
&lt;BR /&gt;
How do you format the &lt;U&gt;&lt;B&gt;ALL='Total'&lt;/B&gt;&lt;/U&gt; statement in your proc tabulate?&lt;BR /&gt;
&lt;BR /&gt;
I have ALL='Total Congestion Revenue' but cannot figure out how to adjust the font_size.  Thanks for any help. I'm sure this is a drop in a bucket for some around here.  I am new to this...&lt;BR /&gt;
&lt;BR /&gt;
B

Message was edited by: BS_CISO</description>
      <pubDate>Thu, 04 Sep 2008 23:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Differences-between-Proc-Report-and-Proc-Tabulate/m-p/3816#M1609</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-09-04T23:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Differences between Proc Report and Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Differences-between-Proc-Report-and-Proc-Tabulate/m-p/3817#M1610</link>
      <description>Hi:&lt;BR /&gt;
  There are 2 different ways to change the ALL summary:&lt;BR /&gt;
1) change the header for "all"&lt;BR /&gt;
2) change the data cells for the summary&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
table country * product all *{s={font_size=16pt background=yellow}},&lt;BR /&gt;
      region*Sum*(predict actual)*{s={background=salef.}}&lt;BR /&gt;
  / style_precedence=row;&lt;BR /&gt;
keylabel Sum='Sales'&lt;BR /&gt;
         All='Total';&lt;BR /&gt;
keyword ALL / style={background=purple foreground=white};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
The KEYWORD statement will change the style of the header label for ALL and the style in the table statement (crossed with ALL) will change the data cells in the summary produced by ALL. In addition, since the style crossing happens in the row dimension, you want the style of the row to take precedence over the style of the column -- for the cell where row and column intersect.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 05 Sep 2008 02:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Differences-between-Proc-Report-and-Proc-Tabulate/m-p/3817#M1610</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-09-05T02:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Differences between Proc Report and Proc Tabulate</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Differences-between-Proc-Report-and-Proc-Tabulate/m-p/533951#M22351</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a learner of SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide the data set you used for explaining this both examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaiganesh&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 15:08:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Differences-between-Proc-Report-and-Proc-Tabulate/m-p/533951#M22351</guid>
      <dc:creator>jaiganesh</dc:creator>
      <dc:date>2019-02-08T15:08:43Z</dc:date>
    </item>
  </channel>
</rss>

