<?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 to name excel tabs in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-name-excel-tabs/m-p/124510#M10518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have three datasets, and I am exporting the data to excel using libname AS FOLLOWS:&lt;/P&gt;&lt;P&gt;libname excl "..\export\&amp;amp;infl.";&lt;/P&gt;&lt;P&gt;data excl.Sheet1(dblabel=yes);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set FINAL1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is I have three datasets final1, final2, final3.While exporting to excel I have to create thrree tabs with these three datasets and rename the exc el tab as :&lt;/P&gt;&lt;P&gt;Base-line(Geno), Post-Bl(Geno) etc etc.. ie with Hyp[hen and brackets. How can I do that?&lt;/P&gt;&lt;P&gt;I can use libname statement only to export data as My data has very long character fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2012 17:48:27 GMT</pubDate>
    <dc:creator>maggi2410</dc:creator>
    <dc:date>2012-09-18T17:48:27Z</dc:date>
    <item>
      <title>to name excel tabs</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-name-excel-tabs/m-p/124510#M10518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have three datasets, and I am exporting the data to excel using libname AS FOLLOWS:&lt;/P&gt;&lt;P&gt;libname excl "..\export\&amp;amp;infl.";&lt;/P&gt;&lt;P&gt;data excl.Sheet1(dblabel=yes);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set FINAL1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem is I have three datasets final1, final2, final3.While exporting to excel I have to create thrree tabs with these three datasets and rename the exc el tab as :&lt;/P&gt;&lt;P&gt;Base-line(Geno), Post-Bl(Geno) etc etc.. ie with Hyp[hen and brackets. How can I do that?&lt;/P&gt;&lt;P&gt;I can use libname statement only to export data as My data has very long character fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 17:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-name-excel-tabs/m-p/124510#M10518</guid>
      <dc:creator>maggi2410</dc:creator>
      <dc:date>2012-09-18T17:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: to name excel tabs</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-name-excel-tabs/m-p/124511#M10519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a name literal, such as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data excl.'Base-line(Geno)'n (dblabel=yes);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 17:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-name-excel-tabs/m-p/124511#M10519</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-09-18T17:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: to name excel tabs</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-name-excel-tabs/m-p/124512#M10520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesnt work. Excel converts hypehn and bracket to underdcores...&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 18:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-name-excel-tabs/m-p/124512#M10520</guid>
      <dc:creator>maggi2410</dc:creator>
      <dc:date>2012-09-18T18:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: to name excel tabs</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-name-excel-tabs/m-p/124513#M10521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; ODS does offer you an alternative. Look at the sheet names in the attached screenshot. They were produced with the code shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Instead of your DATA step program, you would replace my PROC PRINT with a PROC PRINT for each dataset that you wanted to create as a sheet in the workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods listing close;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp file='c:\temp\testname.xml'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; style=sasweb;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp options(sheet_name='Base-line(Geno)');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.shoes(obs=3);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp options(sheet_name='Post-Bl(Geno)');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=sashelp.cars(obs=3);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods tagsets.excelxp close;&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10780i1649BE618D87C698/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="use_sheet_name_excelxp.png" title="use_sheet_name_excelxp.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 23:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-name-excel-tabs/m-p/124513#M10521</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-09-18T23:49:33Z</dc:date>
    </item>
  </channel>
</rss>

