<?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: Sheet Name - proc export/excel engine - how to include blanks... in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636741#M189208</link>
    <description>&lt;P&gt;Excel is an older libname and designed for xls not xlsx files. The two do not have the same functionality and this is documented, do not expect the same functionality between the two.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In some cases, XLS has some more options and XLSX has more. I would resort to using XLSX by default as it's the more modern approach and the files. You can use a VB script to convert your workbooks to the other format if needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&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;Thanks. Nearly there. It works with xlsx engine but when trying it with excel engine, it does not.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Apr 2020 01:34:20 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-04-02T01:34:20Z</dc:date>
    <item>
      <title>Sheet Name - proc export/excel engine - how to include blanks...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636687#M189181</link>
      <description>&lt;P&gt;When using excel engine or the sheet option of proc export, the sheet name can be specified using n-literal.&lt;/P&gt;&lt;P&gt;The downside is that the name is converting to SAS naming convention.&lt;/P&gt;&lt;P&gt;In the example, the blank is replaced with an underscore in the Excel file.&lt;/P&gt;&lt;P&gt;Is there a way of keeping the space?&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;libname demo excel "&amp;amp;xxdemo./reporting/test.xlsx";

data demo.'All Students'n; 
    set sashelp.class;
run;

libname demo clear;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Apr 2020 22:15:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636687#M189181</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2020-04-01T22:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet Name - proc export/excel engine - how to include blanks...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636707#M189192</link>
      <description>&lt;P&gt;Try: options validvarname=any;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 23:22:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636707#M189192</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-04-01T23:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet Name - proc export/excel engine - how to include blanks...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636709#M189193</link>
      <description>&lt;P&gt;Set the VALIDMEMNAME option to EXTEND.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname x xlsx 'c:\downloads\testblank.xlsx' ;
options validmemname=extend;
data x.'sashelp class'n ;
  set sashelp.class;
run;
libname x clear;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Apr 2020 23:27:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636709#M189193</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-01T23:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet Name - proc export/excel engine - how to include blanks...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636712#M189194</link>
      <description>Thanks. Nearly there. It works with xlsx engine but when trying it with excel engine, it does not.</description>
      <pubDate>Wed, 01 Apr 2020 23:47:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636712#M189194</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2020-04-01T23:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet Name - proc export/excel engine - how to include blanks...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636721#M189197</link>
      <description>Yet another good reason to not use the EXCEL engine.</description>
      <pubDate>Thu, 02 Apr 2020 00:30:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636721#M189197</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-02T00:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet Name - proc export/excel engine - how to include blanks...</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636741#M189208</link>
      <description>&lt;P&gt;Excel is an older libname and designed for xls not xlsx files. The two do not have the same functionality and this is documented, do not expect the same functionality between the two.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In some cases, XLS has some more options and XLSX has more. I would resort to using XLSX by default as it's the more modern approach and the files. You can use a VB script to convert your workbooks to the other format if needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&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;Thanks. Nearly there. It works with xlsx engine but when trying it with excel engine, it does not.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 01:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sheet-Name-proc-export-excel-engine-how-to-include-blanks/m-p/636741#M189208</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-02T01:34:20Z</dc:date>
    </item>
  </channel>
</rss>

