<?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 dynamically summarizing rows and columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230791#M41913</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a table structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;e.g.&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" span="5" width="64" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" class="xl63" style="height: 15.0pt; width: 48pt;"&gt;date&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;test&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;tes1&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;col2&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;col4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt;"&gt;1/3/2015&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" align="right" class="xl65" style="height: 15.0pt; width: 48pt;"&gt;4/5/2015&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;I want to dynamically create a column and row that summarizes these values by column and row. something like shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 288pt;" border="0" width="384" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" span="6" width="64" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" class="xl65" style="height: 15.0pt; width: 48pt;"&gt;date&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;test&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;tes1&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;col2&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;col4&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;total&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl66" style="height: 15.0pt;"&gt;1/3/2015&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" align="right" class="xl67" style="height: 15.0pt; width: 48pt;"&gt;4/5/2015&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;18&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" class="xl65" style="height: 15.0pt; width: 48pt;"&gt;Total&lt;/TD&gt;
&lt;TD align="right"&gt;6&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;25&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;right now i am planning on getting this done with multiple proc sql's&amp;nbsp;is there any way i can do a macro coding to get this done&lt;/P&gt;</description>
    <pubDate>Tue, 20 Oct 2015 17:15:30 GMT</pubDate>
    <dc:creator>arunmmw</dc:creator>
    <dc:date>2015-10-20T17:15:30Z</dc:date>
    <item>
      <title>dynamically summarizing rows and columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230791#M41913</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a table structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;e.g.&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 240pt;" border="0" width="320" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" span="5" width="64" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" class="xl63" style="height: 15.0pt; width: 48pt;"&gt;date&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;test&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;tes1&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;col2&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;col4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl64" style="height: 15.0pt;"&gt;1/3/2015&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" align="right" class="xl65" style="height: 15.0pt; width: 48pt;"&gt;4/5/2015&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;I want to dynamically create a column and row that summarizes these values by column and row. something like shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 288pt;" border="0" width="384" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 48pt;" span="6" width="64" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" class="xl65" style="height: 15.0pt; width: 48pt;"&gt;date&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;test&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;tes1&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;col2&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;col4&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;total&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl66" style="height: 15.0pt;"&gt;1/3/2015&lt;/TD&gt;
&lt;TD align="right"&gt;4&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" align="right" class="xl67" style="height: 15.0pt; width: 48pt;"&gt;4/5/2015&lt;/TD&gt;
&lt;TD align="right"&gt;2&lt;/TD&gt;
&lt;TD align="right"&gt;7&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;0&lt;/TD&gt;
&lt;TD align="right"&gt;18&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" class="xl65" style="height: 15.0pt; width: 48pt;"&gt;Total&lt;/TD&gt;
&lt;TD align="right"&gt;6&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;9&lt;/TD&gt;
&lt;TD align="right"&gt;1&lt;/TD&gt;
&lt;TD align="right"&gt;25&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;right now i am planning on getting this done with multiple proc sql's&amp;nbsp;is there any way i can do a macro coding to get this done&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 17:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230791#M41913</guid>
      <dc:creator>arunmmw</dc:creator>
      <dc:date>2015-10-20T17:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically summarizing rows and columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230795#M41914</link>
      <description>&lt;P&gt;You can do it in one step of a SQL procedure.&amp;nbsp; This is assuming you're date column is already converted into a character field:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input date$ test tes1 col2 col4;
datalines;
1/3/2015 4 2 0 1
4/5/2015 2 7 9 0
;
run;

proc sql;
create table want as
select date,
	   test,
	   tes1,
	   col2,
	   col4,
	   sum(test,tes1,col2,col4) as total
from have

union

select "Total" as date,
	   sum(test) as test,
	   sum(tes1) as tes1,
	   sum(col2) as col2,
	   sum(col4) as col4,
	   sum(sum(test,tes1,col2,col4)) as total
from have;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this is helps!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 18:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230795#M41914</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-10-20T18:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically summarizing rows and columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230799#M41916</link>
      <description>&lt;P&gt;&lt;STRONG&gt;union all&lt;/STRONG&gt; will give the same result, but a bit faster, as it won't try to remove duplicate lines.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 18:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230799#M41916</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-10-20T18:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically summarizing rows and columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230807#M41919</link>
      <description>&lt;P&gt;Thanks for your reply. My questions should have been framed in a different way. I want to add grand total for column and rows - however these columns might grow based on data that feeds into the table, and I may not know the column names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if the table size grows to 50 columns with different names, i shouldn't rewrite the code. We do this right now with pivot tables. Something close to what i want is in this example from another site.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;data output ;
  set input end=eof;
  array M(*) M2014: ;
  array F(*) _temporary_ ;

  * Create grand total column ;  
  grand_total=sum(of m(*)) ;
  output ;

  * Output grand total row ;
  if eof then do ;
    do i=1 to dim(m) ;  
      M(i)=F(i) ;
     end ;
     output ;
  end ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 19:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230807#M41919</guid>
      <dc:creator>arunmmw</dc:creator>
      <dc:date>2015-10-20T19:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically summarizing rows and columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230819#M41924</link>
      <description>&lt;P&gt;IMHO, you are doing your summarizing in the wrong place. These summaries (totals) are meant for reporting and should be generated dynamically by reporting procedures (e.g. PRINT, REPORT, TABULATE) at report generation time.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 20:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230819#M41924</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-10-20T20:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically summarizing rows and columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230832#M41926</link>
      <description>&lt;P&gt;You are right - ideally summarization should be at report level. Although,&amp;nbsp;I was able to get grand total at row level using SQL joins, couldnt find an easier solution to summarize at column level&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it really that hard to create summary at column level.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="282"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="72"&gt;RCVD_DT&lt;/TD&gt;
&lt;TD width="42"&gt;c_C31&lt;/TD&gt;
&lt;TD width="42"&gt;c_C72&lt;/TD&gt;
&lt;TD width="42"&gt;c_C73&lt;/TD&gt;
&lt;TD width="42"&gt;c_C36&lt;/TD&gt;
&lt;TD width="42"&gt;c_C55&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;30Sep2015&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;01Oct2015&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;19Oct2015&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;1&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;52&lt;/TD&gt;
&lt;TD&gt;15&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;20Oct2015&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp;Grand Total&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 20 Oct 2015 21:25:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230832#M41926</guid>
      <dc:creator>arunmmw</dc:creator>
      <dc:date>2015-10-20T21:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically summarizing rows and columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230835#M41928</link>
      <description>&lt;P&gt;SQL doesn't support variable lists the way DATA steps do. So, no it is not hard to summarize at column level, but it requires a lot of typing &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; in SQL queries. The only alternative is to use the SAS macro facility to generate the required variable lists.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Oct 2015 21:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230835#M41928</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-10-20T21:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically summarizing rows and columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230852#M41930</link>
      <description>Hi, As PGStats suggested, there are many other procedures that SAS has, like REPORT, TABULATE and even PRINT that will do sub-totals and grand totals and column totals without needing queries or remerging the summary numbers back with the rows. I'd investigate those instead of using SQL. Given the structure of your data, PROC REPORT might be better. If the structure of your data are different than possibly TABULATE would be better.&lt;BR /&gt; &lt;BR /&gt;cynthia</description>
      <pubDate>Wed, 21 Oct 2015 00:49:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230852#M41930</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-10-21T00:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically summarizing rows and columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230870#M41941</link>
      <description>Do you have any naming convention with your variables or will they be random? If you have naming conventions you can use variable shortcuts within the  various procs.</description>
      <pubDate>Wed, 21 Oct 2015 04:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230870#M41941</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-21T04:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically summarizing rows and columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230947#M41961</link>
      <description>&lt;P&gt;There are no naming conventions for this table except that the total column name length is 3.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update:i did use proc tabulate as SAS&amp;nbsp;experts here suggested, and&amp;nbsp;excel ods tagsets to create output to look exactly how it was when using pivot table instead of enterprise guide excel output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although, it would be cool to create a macro to come up with summarizing rows/columns may be using dictionary.columns&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ods tagsets.excelxp file='/test/test/test.xml'&lt;BR /&gt; style=Printer;&lt;BR /&gt;Title 'test';&lt;/P&gt;
&lt;P&gt;ods tagsets.excelxp &lt;BR /&gt; options(Sheet_name = 'test');&lt;/P&gt;
&lt;P&gt;proc tabulate data=test out=testxx ;&lt;BR /&gt;class datevar statusvar;&lt;BR /&gt;keylabel all = Total sum=' ' ;&lt;BR /&gt;var id;&lt;BR /&gt;table datevar ALL, (statusvar all ) * id* SUM * f=comma9.0 ;&lt;BR /&gt;LABEL id = '.'; &lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2015 13:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/dynamically-summarizing-rows-and-columns/m-p/230947#M41961</guid>
      <dc:creator>arunmmw</dc:creator>
      <dc:date>2015-10-21T13:52:45Z</dc:date>
    </item>
  </channel>
</rss>

