<?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: export to multiple sheets in excel with separate by group tables within each sheet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/export-to-multiple-sheets-in-excel-with-separate-by-group-tables/m-p/770187#M244323</link>
    <description>&lt;P&gt;Use PROC PRINT with &lt;FONT face="courier new,courier"&gt;by sex age;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 10:18:33 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-09-24T10:18:33Z</dc:date>
    <item>
      <title>export to multiple sheets in excel with separate by group tables within each sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-to-multiple-sheets-in-excel-with-separate-by-group-tables/m-p/769828#M244130</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to export data from SAS into Excel&amp;nbsp; to multiple sheets.&lt;/P&gt;
&lt;P&gt;Each Sex will have another sheet.&lt;/P&gt;
&lt;P&gt;Within the sheet I want to have separate tables (with title of each table)&amp;nbsp; for each age.&lt;/P&gt;
&lt;P&gt;I have tried to add "ID age" statement but results are not as I want because there are no separate tables for each age group. What is the way to solve it please?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by sex;
run;
ods excel file="d:\myfolder\class.xlsx" options(sheet_interval='BYGROUP' sheet_name= '#byval1');
proc print data=class;
by sex;
Id age;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Sep 2021 08:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-to-multiple-sheets-in-excel-with-separate-by-group-tables/m-p/769828#M244130</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-09-23T08:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: export to multiple sheets in excel with separate by group tables within each sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-to-multiple-sheets-in-excel-with-separate-by-group-tables/m-p/770176#M244316</link>
      <description>&lt;P&gt;You need to create the sheets manually, and use the BY statement to separate tables in each sheet.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 09:46:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-to-multiple-sheets-in-excel-with-separate-by-group-tables/m-p/770176#M244316</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-24T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: export to multiple sheets in excel with separate by group tables within each sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-to-multiple-sheets-in-excel-with-separate-by-group-tables/m-p/770187#M244323</link>
      <description>&lt;P&gt;Use PROC PRINT with &lt;FONT face="courier new,courier"&gt;by sex age;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 10:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-to-multiple-sheets-in-excel-with-separate-by-group-tables/m-p/770187#M244323</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-24T10:18:33Z</dc:date>
    </item>
  </channel>
</rss>

