<?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 ODS EXCEL : Add two blank sheets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-Add-two-blank-sheets/m-p/817481#M322679</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know if it's possible to add two blank sheets before exporting SAS outputs ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found that it is possible to add one before and after a sheet in which there is a SAS table, or one between two different sheets containing SAS outputs. I want to know if it is possible to add two blank sheets consecutively.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did this&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;%macro reporting(...) ; 
proc report data = ...  ; 
run ; 
%mend ;&lt;BR /&gt; &lt;/CODE&gt;ods excel file = "" &lt;BR /&gt;options (sheet_interval="none" blank_sheet="INFORMATION") ; &lt;BR /&gt;&amp;nbsp;ods excel options(sheet_name="A" blank_sheet="INFORMATION_A") ; &lt;BR /&gt;%reporting(...) ; &lt;BR /&gt;...&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Yet it only outputs two sheets : "INFORMATION_A" and "A" while i want 3 sheets in this order : INFORMATION, INFORMATION_A, A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2022 14:48:13 GMT</pubDate>
    <dc:creator>elsfy</dc:creator>
    <dc:date>2022-06-10T14:48:13Z</dc:date>
    <item>
      <title>ODS EXCEL : Add two blank sheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-Add-two-blank-sheets/m-p/817481#M322679</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know if it's possible to add two blank sheets before exporting SAS outputs ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found that it is possible to add one before and after a sheet in which there is a SAS table, or one between two different sheets containing SAS outputs. I want to know if it is possible to add two blank sheets consecutively.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did this&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;%macro reporting(...) ; 
proc report data = ...  ; 
run ; 
%mend ;&lt;BR /&gt; &lt;/CODE&gt;ods excel file = "" &lt;BR /&gt;options (sheet_interval="none" blank_sheet="INFORMATION") ; &lt;BR /&gt;&amp;nbsp;ods excel options(sheet_name="A" blank_sheet="INFORMATION_A") ; &lt;BR /&gt;%reporting(...) ; &lt;BR /&gt;...&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Yet it only outputs two sheets : "INFORMATION_A" and "A" while i want 3 sheets in this order : INFORMATION, INFORMATION_A, A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 14:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-Add-two-blank-sheets/m-p/817481#M322679</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-06-10T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL : Add two blank sheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-Add-two-blank-sheets/m-p/817519#M322691</link>
      <description>&lt;P&gt;It appears only one blank sheet can be added before your data sheet, but here's a work around you can try, add an extra ods options statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods excel file="c:\temp\file.xlsx"&lt;BR /&gt;options (sheet_name="A" blank_sheet="Information_A");&lt;/P&gt;
&lt;P&gt;proc print data = sashelp.class;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods excel options (blank_sheet="Information");&lt;BR /&gt;ods excel close;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 18:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-Add-two-blank-sheets/m-p/817519#M322691</guid>
      <dc:creator>JOL</dc:creator>
      <dc:date>2022-06-10T18:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL : Add two blank sheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-Add-two-blank-sheets/m-p/817574#M322713</link>
      <description>&lt;P&gt;Try this one :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="c:\temp\file.xlsx" options (sheet_name="A" );

proc print data = sashelp.class;
run;

ods excel options (sheet_name="BlankSheet1");
proc sql;
select name label='#' from sashelp.class(obs=0);
quit;

ods excel options (sheet_name="BlankSheet2");
proc sql;
select name label='#' from sashelp.class(obs=0);
quit;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 11 Jun 2022 06:32:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-Add-two-blank-sheets/m-p/817574#M322713</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-11T06:32:33Z</dc:date>
    </item>
  </channel>
</rss>

