<?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: Excel sheet name length limit in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-sheet-name-length-limit/m-p/640829#M23948</link>
    <description>&lt;P&gt;sheet_label and sheet_name are concatenated to build the final sheet name in the workbook (if you specify sheet_interval as "bygroup", the final sheet name will be built from sheet_label and the group value).&lt;/P&gt;
&lt;P&gt;Together they are limited by the 28 character limit. The Excel GUI allows to enter 31 characters, while the Excel file format seems to allow 255, as I have found while researching this (Maxim 6: Google Is Your Friend).&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2020 19:49:49 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-04-17T19:49:49Z</dc:date>
    <item>
      <title>Excel sheet name length limit</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-sheet-name-length-limit/m-p/640790#M23946</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question on sheet name been truncated in ODS EXCEL output. I saw the ODS Sheet_name has a limitation of 28 characters but Excel sheet name allow more. For example, if I use proc export, the sheet name will output fine. But because the percentage format is not kept in proc export, I had to rely on ODS EXCEL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to get around it, meaning keeping the full sheet name?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my simple code:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file=&amp;amp;outputexcel; 
ods excel options(sheet_label = "XXXXXXXXX Tracking Data Summary"); run; 
proc report data=mydata;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and the output Excel Tab will be "&lt;CODE class=" language-sas"&gt;XXXXXXXXX Tracking Data Summ"&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 17:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-sheet-name-length-limit/m-p/640790#M23946</guid>
      <dc:creator>coladuck</dc:creator>
      <dc:date>2020-04-17T17:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Excel sheet name length limit</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-sheet-name-length-limit/m-p/640829#M23948</link>
      <description>&lt;P&gt;sheet_label and sheet_name are concatenated to build the final sheet name in the workbook (if you specify sheet_interval as "bygroup", the final sheet name will be built from sheet_label and the group value).&lt;/P&gt;
&lt;P&gt;Together they are limited by the 28 character limit. The Excel GUI allows to enter 31 characters, while the Excel file format seems to allow 255, as I have found while researching this (Maxim 6: Google Is Your Friend).&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 19:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-sheet-name-length-limit/m-p/640829#M23948</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-17T19:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Excel sheet name length limit</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-sheet-name-length-limit/m-p/640832#M23949</link>
      <description>&lt;P&gt;You might need to ask SAS technical support.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect it is losing the extra three characters because of some issue with the 'sheetname$'n syntax.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/16/176.html" target="_blank"&gt;https://support.sas.com/kb/16/176.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The quotes and dollar sign add up to the missing 3 characters.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 20:03:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-sheet-name-length-limit/m-p/640832#M23949</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-17T20:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Excel sheet name length limit</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-sheet-name-length-limit/m-p/641028#M23951</link>
      <description>&lt;P&gt;Hi: You are correct. Excel allows 31 characters. ODS EXCEL allows the sheet names to be 28 characters long because part of how ODS works is that if it needs to append a number to the end of your name, it needs to reserve some extra characters for numbering as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1587255437954.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/38427i9CC1BB320D389B4F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1587255437954.png" alt="Cynthia_sas_0-1587255437954.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 00:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Excel-sheet-name-length-limit/m-p/641028#M23951</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-04-19T00:17:39Z</dc:date>
    </item>
  </channel>
</rss>

