<?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 two proc-report-outputs per excel-sheet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/export-two-proc-report-outputs-per-excel-sheet/m-p/875401#M345878</link>
    <description>&lt;P&gt;You need to add the option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sheet_interval="none"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to prevent the automatic creation of a new sheet for every procedure call.&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 06:14:57 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-05-12T06:14:57Z</dc:date>
    <item>
      <title>export two proc-report-outputs per excel-sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-two-proc-report-outputs-per-excel-sheet/m-p/875400#M345877</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to export my proc-report-outputs into a excel-file. What I not want is the result of following code. Each output gets its own spreadsheet.&lt;/P&gt;
&lt;P&gt;What I want is: Both results of output1 should be exported into the spreadsheet "sex". And the both results of Output2 should be exported into the spreadsheet "age". I dont know how to get this result. I dont get it neither if I would use the same sheet_name per output. Why? &lt;STRONG&gt;Thank you for help!&lt;/STRONG&gt;&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;/*Exportpath*/
ods excel file="...path\Ergebnisse.xlsx"

/*=====================================*/
/*==========  output1 ==================*/
/*=====================================*/


options(sheet_name="sex_sum" embedded_titles='Yes');

/*Absolut*/
proc report &lt;BR /&gt;[...]&lt;BR /&gt;run;

ODS excel options(sheet_name="sex_rel" embedded_titles='Yes');

/*relative*/
proc report &lt;BR /&gt;[...]&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/*=====================================*/
/*==========  output2 ==================*/
/*=====================================*/

options(sheet_name="age_sum" embedded_titles='Yes');

/*Absolut*/
proc report &lt;BR /&gt;[...]&lt;BR /&gt;run;

ODS excel options(sheet_name="age_rel" embedded_titles='Yes');

/*relative*/
proc report &lt;BR /&gt;[...]&lt;BR /&gt;run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 05:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-two-proc-report-outputs-per-excel-sheet/m-p/875400#M345877</guid>
      <dc:creator>Konkordanz</dc:creator>
      <dc:date>2023-05-12T05:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: export two proc-report-outputs per excel-sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/export-two-proc-report-outputs-per-excel-sheet/m-p/875401#M345878</link>
      <description>&lt;P&gt;You need to add the option&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sheet_interval="none"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to prevent the automatic creation of a new sheet for every procedure call.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 06:14:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/export-two-proc-report-outputs-per-excel-sheet/m-p/875401#M345878</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-05-12T06:14:57Z</dc:date>
    </item>
  </channel>
</rss>

