<?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: Renaming worksheets when using libname statement for creating Excel files in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Renaming-worksheets-when-using-libname-statement-for-creating/m-p/49327#M726</link>
    <description>Hi:&lt;BR /&gt;
   If you did this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
libname outxls excel 'H:\HLI\example_out2.xls' ;&lt;BR /&gt;
               &lt;BR /&gt;
data outxls.wombat (dblabel=yes);&lt;BR /&gt;
set sasuser.report_2009;&lt;BR /&gt;
run;&lt;BR /&gt;
            &lt;BR /&gt;
LIBNAME outxls CLEAR;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                &lt;BR /&gt;
Then the name of the sheet would be 'wombat'....there is no sheet= option such as that used with PROC EXPORT. &lt;BR /&gt;
  &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 15 Jul 2010 03:47:00 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-07-15T03:47:00Z</dc:date>
    <item>
      <title>Renaming worksheets when using libname statement for creating Excel files</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Renaming-worksheets-when-using-libname-statement-for-creating/m-p/49326#M725</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I would like to rename the individual worksheets when creating Excel files using the libname statement so that the name of the sheet does not have to be equal to the name of the dataset. Is there an option similar to the sheet='YY' option in PROC Export? &lt;BR /&gt;
&lt;BR /&gt;
Here's a code sample:&lt;BR /&gt;
&lt;BR /&gt;
libname outxls excel 'H:\HLI\example_out2.xls' ;&lt;BR /&gt;
data outxls.report_2009 (dblabel=yes);&lt;BR /&gt;
	set sasuser.report_2009;&lt;BR /&gt;
run;&lt;BR /&gt;
LIBNAME outxls CLEAR;&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Helle</description>
      <pubDate>Wed, 14 Jul 2010 12:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Renaming-worksheets-when-using-libname-statement-for-creating/m-p/49326#M725</guid>
      <dc:creator>Helle</dc:creator>
      <dc:date>2010-07-14T12:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming worksheets when using libname statement for creating Excel files</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Renaming-worksheets-when-using-libname-statement-for-creating/m-p/49327#M726</link>
      <description>Hi:&lt;BR /&gt;
   If you did this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
libname outxls excel 'H:\HLI\example_out2.xls' ;&lt;BR /&gt;
               &lt;BR /&gt;
data outxls.wombat (dblabel=yes);&lt;BR /&gt;
set sasuser.report_2009;&lt;BR /&gt;
run;&lt;BR /&gt;
            &lt;BR /&gt;
LIBNAME outxls CLEAR;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                &lt;BR /&gt;
Then the name of the sheet would be 'wombat'....there is no sheet= option such as that used with PROC EXPORT. &lt;BR /&gt;
  &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 15 Jul 2010 03:47:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Renaming-worksheets-when-using-libname-statement-for-creating/m-p/49327#M726</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-07-15T03:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming worksheets when using libname statement for creating Excel files</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Renaming-worksheets-when-using-libname-statement-for-creating/m-p/49328#M727</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for bringing this very obvious solution to my attention &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Helle</description>
      <pubDate>Thu, 15 Jul 2010 07:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Renaming-worksheets-when-using-libname-statement-for-creating/m-p/49328#M727</guid>
      <dc:creator>Helle</dc:creator>
      <dc:date>2010-07-15T07:48:52Z</dc:date>
    </item>
  </channel>
</rss>

