<?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: output in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/output/m-p/71640#M20682</link>
    <description>have you considered proc sort, proc tabulate, followed by proc print, using class/by statement something like :&lt;BR /&gt;
ods tagsets.excelxp file= '!temp\demo.xml' ;&lt;BR /&gt;
proc sort data= your_data out= _data_ ;&lt;BR /&gt;
 by age_group ;&lt;BR /&gt;
run ;&lt;BR /&gt;
%let ordered = &amp;amp;syslast ;&lt;BR /&gt;
ods tagsets.excelxp options( sheet_name='summary' ) ;&lt;BR /&gt;
proc tabulate data= &amp;amp;ordered missing format= 5. ;&lt;BR /&gt;
class age_group ;&lt;BR /&gt;
var date ;&lt;BR /&gt;
table age_group all, n date=' '*( min='from' max='to')*f= mmddyy. ;&lt;BR /&gt;
run ;&lt;BR /&gt;
ods tagsets.excelxp options( sheet_name='detail_'  ) ;&lt;BR /&gt;
proc print data= &amp;amp;ordered label noobs ;&lt;BR /&gt;
by age_group ;&lt;BR /&gt;
pageby age_group ;&lt;BR /&gt;
run ;&lt;BR /&gt;
ods tagsets.excelxp close ;</description>
    <pubDate>Wed, 01 Jun 2011 22:03:37 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2011-06-01T22:03:37Z</dc:date>
    <item>
      <title>output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/output/m-p/71639#M20681</link>
      <description>data:&lt;BR /&gt;
&lt;BR /&gt;
age_group	   date	    enrolled	     aid&lt;BR /&gt;
senior	   1/5/2011	    y               y&lt;BR /&gt;
teen	   1/5/2011	    y	     y&lt;BR /&gt;
child	   1/5/2011	    y	     y&lt;BR /&gt;
infant	   1/5/2011	    y	     y&lt;BR /&gt;
mature	   1/5/2011	    y	     n&lt;BR /&gt;
senior	   1/10/2011   y	     n&lt;BR /&gt;
teen	   1/10/2011   y	     n&lt;BR /&gt;
&lt;BR /&gt;
Above is sample data.  I need to create an document prefer excel that will first give the sum of each age group and then the total. Second I need to have detail pages for each age group.  &lt;BR /&gt;
&lt;BR /&gt;
I started with a simple proc freq statement but it did not give me the totals. How do I get a total?&lt;BR /&gt;
&lt;BR /&gt;
For the detail pages in excel should I do a marco or an array.  Or is there a much easier way.  I know I can do it in proc report but the data needs to be manipulated by the end user which means end user preferes excel.&lt;BR /&gt;
&lt;BR /&gt;
I also have to put a logo on the top of the report before the title.</description>
      <pubDate>Wed, 01 Jun 2011 11:34:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/output/m-p/71639#M20681</guid>
      <dc:creator>mick_g</dc:creator>
      <dc:date>2011-06-01T11:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: output</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/output/m-p/71640#M20682</link>
      <description>have you considered proc sort, proc tabulate, followed by proc print, using class/by statement something like :&lt;BR /&gt;
ods tagsets.excelxp file= '!temp\demo.xml' ;&lt;BR /&gt;
proc sort data= your_data out= _data_ ;&lt;BR /&gt;
 by age_group ;&lt;BR /&gt;
run ;&lt;BR /&gt;
%let ordered = &amp;amp;syslast ;&lt;BR /&gt;
ods tagsets.excelxp options( sheet_name='summary' ) ;&lt;BR /&gt;
proc tabulate data= &amp;amp;ordered missing format= 5. ;&lt;BR /&gt;
class age_group ;&lt;BR /&gt;
var date ;&lt;BR /&gt;
table age_group all, n date=' '*( min='from' max='to')*f= mmddyy. ;&lt;BR /&gt;
run ;&lt;BR /&gt;
ods tagsets.excelxp options( sheet_name='detail_'  ) ;&lt;BR /&gt;
proc print data= &amp;amp;ordered label noobs ;&lt;BR /&gt;
by age_group ;&lt;BR /&gt;
pageby age_group ;&lt;BR /&gt;
run ;&lt;BR /&gt;
ods tagsets.excelxp close ;</description>
      <pubDate>Wed, 01 Jun 2011 22:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/output/m-p/71640#M20682</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-06-01T22:03:37Z</dc:date>
    </item>
  </channel>
</rss>

