<?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: Create multiple tabs with one data step using the xlsx engine in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-multiple-tabs-with-one-data-step-using-the-xlsx-engine/m-p/882485#M348643</link>
    <description>&lt;P&gt;The error seems to indicate that it's intended at the moment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;74 data demo.Male&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;75 demo.Female;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76 set sashelp.class;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77 if sex='M' then output demo.Male;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 else if sex='F' then output demo.Female;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;79 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogError1_1687799194201" class="sasError"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR: XLSX libname engine does not support simultaneous output to the same library reference&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The following code works properly with the excel engine but not with the xlsx engine.&lt;/P&gt;
&lt;P&gt;Two data steps are necessary with the xlsx engine.&lt;/P&gt;
&lt;P&gt;Is it a bug or an intentional feature (if so what would be the reason)?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%*let xxengine=xlsx;
%let xxengine=excel;

libname demo &amp;amp;xxengine. "&amp;amp;xxtest./reporting/test.xlsx";

data demo.Male
     demo.Female;
    set sashelp.class;
    if sex='M' then output demo.Male;
    else if sex='F' then output demo.Female;
run;

libname demo clear;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 26 Jun 2023 17:19:57 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2023-06-26T17:19:57Z</dc:date>
    <item>
      <title>Create multiple tabs with one data step using the xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-multiple-tabs-with-one-data-step-using-the-xlsx-engine/m-p/882482#M348640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The following code works properly with the excel engine but not with the xlsx engine.&lt;/P&gt;
&lt;P&gt;Two data steps are necessary with the xlsx engine.&lt;/P&gt;
&lt;P&gt;Is it a bug or an intentional feature (if so what would be the reason)?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%*let xxengine=xlsx;
%let xxengine=excel;

libname demo &amp;amp;xxengine. "&amp;amp;xxtest./reporting/test.xlsx";

data demo.Male
     demo.Female;
    set sashelp.class;
    if sex='M' then output demo.Male;
    else if sex='F' then output demo.Female;
run;

libname demo clear;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jun 2023 16:59:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-multiple-tabs-with-one-data-step-using-the-xlsx-engine/m-p/882482#M348640</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2023-06-26T16:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create multiple tabs with one data step using the xlsx engine</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-multiple-tabs-with-one-data-step-using-the-xlsx-engine/m-p/882485#M348643</link>
      <description>&lt;P&gt;The error seems to indicate that it's intended at the moment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;74 data demo.Male&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;75 demo.Female;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76 set sashelp.class;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77 if sex='M' then output demo.Male;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 else if sex='F' then output demo.Female;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;79 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="sasLogError1_1687799194201" class="sasError"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR: XLSX libname engine does not support simultaneous output to the same library reference&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The following code works properly with the excel engine but not with the xlsx engine.&lt;/P&gt;
&lt;P&gt;Two data steps are necessary with the xlsx engine.&lt;/P&gt;
&lt;P&gt;Is it a bug or an intentional feature (if so what would be the reason)?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%*let xxengine=xlsx;
%let xxengine=excel;

libname demo &amp;amp;xxengine. "&amp;amp;xxtest./reporting/test.xlsx";

data demo.Male
     demo.Female;
    set sashelp.class;
    if sex='M' then output demo.Male;
    else if sex='F' then output demo.Female;
run;

libname demo clear;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Jun 2023 17:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-multiple-tabs-with-one-data-step-using-the-xlsx-engine/m-p/882485#M348643</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-06-26T17:19:57Z</dc:date>
    </item>
  </channel>
</rss>

