<?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: proc report mulstiple datasets into one excel sheet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-mulstiple-datasets-into-one-excel-sheet/m-p/740514#M231335</link>
    <description>&lt;P&gt;You can direct SAS to output multiple reports to a single sheet in Excel via the ODS EXCEL option SHEET_INTERVAL='NONE'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="c:\myfolder\myexcelfile.xlsx" options(sheet_interval='NONE');
proc report data=whatever;
...
run;
proc report data=whatever2;
...
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Please note: the column widths have to be the same as they are in one Excel sheet. For examplle, if the second column of the first table is wider than the second column of the second table, the Excel file makes the column wide enough for everything, even though that is too wide in the second table.&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 15:10:19 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-05-11T15:10:19Z</dc:date>
    <item>
      <title>proc report mulstiple datasets into one excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-mulstiple-datasets-into-one-excel-sheet/m-p/740506#M231332</link>
      <description>&lt;P&gt;HI I need hellp exporting multiple dataset outputs into one&amp;nbsp;sheet in excel. I am using proc report to output my data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-mulstiple-datasets-into-one-excel-sheet/m-p/740506#M231332</guid>
      <dc:creator>bobeng</dc:creator>
      <dc:date>2021-05-11T15:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc report mulstiple datasets into one excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-mulstiple-datasets-into-one-excel-sheet/m-p/740514#M231335</link>
      <description>&lt;P&gt;You can direct SAS to output multiple reports to a single sheet in Excel via the ODS EXCEL option SHEET_INTERVAL='NONE'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="c:\myfolder\myexcelfile.xlsx" options(sheet_interval='NONE');
proc report data=whatever;
...
run;
proc report data=whatever2;
...
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Please note: the column widths have to be the same as they are in one Excel sheet. For examplle, if the second column of the first table is wider than the second column of the second table, the Excel file makes the column wide enough for everything, even though that is too wide in the second table.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-mulstiple-datasets-into-one-excel-sheet/m-p/740514#M231335</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-05-11T15:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: proc report mulstiple datasets into one excel sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-mulstiple-datasets-into-one-excel-sheet/m-p/740517#M231336</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ODS EXCEL has a suboption called "sheet_interval" if you want multiple procedure steps (whether multiple PROC REPORTS or a mix of procedures), all you need to do is use the correct suboption. Here's an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1620745772459.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59214i058E60F3019A276E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1620745772459.png" alt="Cynthia_sas_0-1620745772459.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 15:09:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-mulstiple-datasets-into-one-excel-sheet/m-p/740517#M231336</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-05-11T15:09:44Z</dc:date>
    </item>
  </channel>
</rss>

