<?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 proc export dmbs=xls strange sheet name in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-dmbs-xls-strange-sheet-name/m-p/167169#M43281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use proc export in SAS EG (9.3 windows server side) to create a xls file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing is if I use a sheet name that starts with a number, the first number is replaced with _. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is the first number replaced with a _.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA work.test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; b=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; c=3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a=3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; b=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; c=1;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC EXPORT DATA=work.test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTFILE="test.xls"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=XLS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; REPLACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHEET="123";&lt;/P&gt;&lt;P&gt;&amp;nbsp; RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 May 2014 08:57:53 GMT</pubDate>
    <dc:creator>Richardvan_tHoff</dc:creator>
    <dc:date>2014-05-21T08:57:53Z</dc:date>
    <item>
      <title>proc export dmbs=xls strange sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-dmbs-xls-strange-sheet-name/m-p/167169#M43281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use proc export in SAS EG (9.3 windows server side) to create a xls file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing is if I use a sheet name that starts with a number, the first number is replaced with _. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is the first number replaced with a _.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA work.test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; b=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; c=3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a=3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; b=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; c=1;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; PROC EXPORT DATA=work.test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTFILE="test.xls"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=XLS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; REPLACE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SHEET="123";&lt;/P&gt;&lt;P&gt;&amp;nbsp; RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 08:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-dmbs-xls-strange-sheet-name/m-p/167169#M43281</guid>
      <dc:creator>Richardvan_tHoff</dc:creator>
      <dc:date>2014-05-21T08:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc export dmbs=xls strange sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-dmbs-xls-strange-sheet-name/m-p/167170#M43282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several naming conventions within this game.&lt;/P&gt;&lt;P&gt;A sheetname can also be a SAS-table name. SAS table-names&amp;nbsp; must start with a letter or an underscore.&lt;BR /&gt;Using that kind of information a table within SAS is a defined structure. That is messing in Excel, but you have range-names.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#n0msy4hy1so0ren1acm90iijxn8j.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#n0msy4hy1so0ren1acm90iijxn8j.htm"&gt;SAS/ACCESS(R) 9.3 Interface to PC Files: Reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/14/475.html" title="http://support.sas.com/kb/14/475.html"&gt;14475 - PROC EXPORT to Excel inserts leading underscore in Worksheet name&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 09:10:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-dmbs-xls-strange-sheet-name/m-p/167170#M43282</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-21T09:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc export dmbs=xls strange sheet name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-export-dmbs-xls-strange-sheet-name/m-p/167171#M43283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can change to XLSX you can create the 123 sheet name.&amp;nbsp; You will also have a named-range called _23.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 12:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-export-dmbs-xls-strange-sheet-name/m-p/167171#M43283</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-05-21T12:50:01Z</dc:date>
    </item>
  </channel>
</rss>

