<?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 creating multisheet excel files by using proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/450981#M20773</link>
    <description>&lt;P&gt;I am using SAS EG 7.1 and have Excel 2016.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use proc report to export multiple SAS datasets from a permanent sas library into a single excel workbook; with each dataset being printed on a new sheet. Also i need to give specific names to the sheets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i achieve this using ods excel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg:library sasdata&lt;/P&gt;&lt;P&gt;datasets: abc, def, ghi, jkl etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output: Filename.xlsx&lt;/P&gt;&lt;P&gt;sheet1(name-task): abc&lt;/P&gt;&lt;P&gt;sheet2(name-outcome) :def&lt;/P&gt;&lt;P&gt;sheet3(name-issues): ghi......etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Apr 2018 09:22:48 GMT</pubDate>
    <dc:creator>russfern</dc:creator>
    <dc:date>2018-04-04T09:22:48Z</dc:date>
    <item>
      <title>creating multisheet excel files by using proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/450981#M20773</link>
      <description>&lt;P&gt;I am using SAS EG 7.1 and have Excel 2016.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to use proc report to export multiple SAS datasets from a permanent sas library into a single excel workbook; with each dataset being printed on a new sheet. Also i need to give specific names to the sheets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i achieve this using ods excel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg:library sasdata&lt;/P&gt;&lt;P&gt;datasets: abc, def, ghi, jkl etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output: Filename.xlsx&lt;/P&gt;&lt;P&gt;sheet1(name-task): abc&lt;/P&gt;&lt;P&gt;sheet2(name-outcome) :def&lt;/P&gt;&lt;P&gt;sheet3(name-issues): ghi......etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 09:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/450981#M20773</guid>
      <dc:creator>russfern</dc:creator>
      <dc:date>2018-04-04T09:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: creating multisheet excel files by using proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/450995#M20774</link>
      <description>&lt;P&gt;And what have you searched for?&amp;nbsp; Reason is this is covered many many times in various ways.&amp;nbsp; You could use ods tagsets.excelxp (my preferred method):&lt;/P&gt;
&lt;PRE&gt;ods tagsets.excelxp file="want.xml" options(sheet_name="ABC");

proc report...;
run;

ods tagsets.excelxp options(sheet_name="DEF");

proc report...;
run;

ods tagsets.excelxp close;&lt;/PRE&gt;
&lt;P&gt;That keeps the best formatting from report.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 10:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/450995#M20774</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-04T10:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: creating multisheet excel files by using proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/451044#M20775</link>
      <description>&lt;P&gt;Also works with ODS EXCEL instead of ODS TAGSETS.EXCELXP&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 12:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/451044#M20775</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-04T12:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: creating multisheet excel files by using proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/451046#M20776</link>
      <description>&lt;P&gt;Good point, thanks.&amp;nbsp; Is it fully stable yet?&amp;nbsp; I didn't for instance want to use libname excel as have had issues with the more recent technologies regarding Excel.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 12:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/451046#M20776</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-04T12:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: creating multisheet excel files by using proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/451053#M20777</link>
      <description>&lt;P&gt;I have not really tested it via LIBNAME EXCEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS EXCEL seems to do everything I want, SAS is pushing it as the latest-and-greatest (which I believe), and there are lots of papers written on it with great examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And there was one glitch where text didn't seem to word-wrap properly, which this thread provides a solution to:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/Lines-Wrapping-in-ODS-Excel/m-p/154932#M11794" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/Lines-Wrapping-in-ODS-Excel/m-p/154932#M11794&lt;/A&gt;. But maybe SAS has fixed this, I don't know.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 12:19:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/451053#M20777</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-04T12:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: creating multisheet excel files by using proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/451132#M20779</link>
      <description>&lt;P&gt;ODS EXCEL is stable/production as of SAS 9.4 TS1M3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will generate an excel workbook called demo, with one sheet for each age, labeled Age - .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can control the sheet names by using the sheet_label and sheet_name options as desired.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the documentation for further specifications.&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 age;run;

ods excel file='C:/_localdata/demo.xlsx' 
    style=meadow 
    options (sheet_interval="bygroup" sheet_label='Age');

proc report data=class; 
by age;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 14:58:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/creating-multisheet-excel-files-by-using-proc-report/m-p/451132#M20779</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-04T14:58:54Z</dc:date>
    </item>
  </channel>
</rss>

