<?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 ODS ExcelXP Tagset &amp; Very Long Titles in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73180#M8333</link>
    <description>Two questions that I believe are related to the ExcelXP tagset.&lt;BR /&gt;
&lt;BR /&gt;
1) I have one of those really long legal titles that takes up row 5 of an Excel spreadsheet.  I've mimicked the title below and the carriage returns that I need, but can't figure out how to obtain with SAS.&lt;BR /&gt;
2) The title that is returned isn't half bad, although the client will object.  When I open the spreadsheet, the title is partially hidden, and I need to do a manual fix.  For that particular title, I almost need an Excel row height of 55.  Any options that I've overlooked?&lt;BR /&gt;
&lt;BR /&gt;
TIA,&lt;BR /&gt;
Kim LeBouton&lt;BR /&gt;
&lt;BR /&gt;
%let title5="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz";				&lt;BR /&gt;
ods html close;&lt;BR /&gt;
ods tagsets.excelxp file='c:\test long titles.xls';&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp options(embedded_titles='yes'&lt;BR /&gt;
			gridlines='yes'&lt;BR /&gt;
			autofit_height='yes');&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp options(sheet_name='XXX XXXXX');&lt;BR /&gt;
&lt;BR /&gt;
title j=center font='Century Gothic' height=8pt &amp;amp;title5;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.excelxp close;</description>
    <pubDate>Sat, 18 Sep 2010 01:18:08 GMT</pubDate>
    <dc:creator>KimLeBouton</dc:creator>
    <dc:date>2010-09-18T01:18:08Z</dc:date>
    <item>
      <title>ODS ExcelXP Tagset &amp; Very Long Titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73180#M8333</link>
      <description>Two questions that I believe are related to the ExcelXP tagset.&lt;BR /&gt;
&lt;BR /&gt;
1) I have one of those really long legal titles that takes up row 5 of an Excel spreadsheet.  I've mimicked the title below and the carriage returns that I need, but can't figure out how to obtain with SAS.&lt;BR /&gt;
2) The title that is returned isn't half bad, although the client will object.  When I open the spreadsheet, the title is partially hidden, and I need to do a manual fix.  For that particular title, I almost need an Excel row height of 55.  Any options that I've overlooked?&lt;BR /&gt;
&lt;BR /&gt;
TIA,&lt;BR /&gt;
Kim LeBouton&lt;BR /&gt;
&lt;BR /&gt;
%let title5="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz";				&lt;BR /&gt;
ods html close;&lt;BR /&gt;
ods tagsets.excelxp file='c:\test long titles.xls';&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp options(embedded_titles='yes'&lt;BR /&gt;
			gridlines='yes'&lt;BR /&gt;
			autofit_height='yes');&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp options(sheet_name='XXX XXXXX');&lt;BR /&gt;
&lt;BR /&gt;
title j=center font='Century Gothic' height=8pt &amp;amp;title5;&lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.excelxp close;</description>
      <pubDate>Sat, 18 Sep 2010 01:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73180#M8333</guid>
      <dc:creator>KimLeBouton</dc:creator>
      <dc:date>2010-09-18T01:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS ExcelXP Tagset &amp; Very Long Titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73181#M8334</link>
      <description>Hi:&lt;BR /&gt;
  Well, for some reason, I had to put just=c into a style template. I could not get centering working with the center command in the TITLE statement or in the ESCAPECHAR style override.&lt;BR /&gt;
&lt;BR /&gt;
  I -did- manage to get the HEIGHT working for the TITLE line. If you say autofit_height='no' then you can set a specific row height for the title using the ROW_HEIGHTS suboption.&lt;BR /&gt;
&lt;BR /&gt;
  But then, since the title needs to span ALL the columns, I had odd wrapping for the XXX, YYY and ZZZ -- so I needed to increase the width of every column so that all the columns together would be wide enough to fit the long text.&lt;BR /&gt;
&lt;BR /&gt;
  Last, I had to use the special string that represents Alt+Enter for Excel -- that is the &amp;amp;#10; string. Excel only allows you to specify a "return" in a cell by typing Alt+Enter. Apparently, the way you specify the equivalent of Alt+Enter in a Spreadsheet Markup Language XML file is &lt;BR /&gt;
&lt;BR /&gt;
 &amp;amp;#10;  &lt;BR /&gt;
...and so that special string needed to have protectspecialchars set to off so the &amp;amp; would not get turned into &amp;amp;amp; when it was used. (Just like &amp;lt; gets "protected" by being turned into &amp;amp;lt;  and &amp;gt; gets turned into &amp;amp;gt; )&lt;BR /&gt;
&lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
options noquotelenmax;&lt;BR /&gt;
   &lt;BR /&gt;
ods path work.ttt(update) sasuser.templat(update) sashelp.tmplmst(read);&lt;BR /&gt;
 &lt;BR /&gt;
proc template;&lt;BR /&gt;
  define style styles.kb;&lt;BR /&gt;
    parent=styles.default;&lt;BR /&gt;
    class SystemTitle from SystemTitle /&lt;BR /&gt;
       just=c;&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
             &lt;BR /&gt;
%let t1=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;&lt;BR /&gt;
%let t2=yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy;&lt;BR /&gt;
%let t3=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz;&lt;BR /&gt;
          &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
                  &lt;BR /&gt;
ods tagsets.excelxp file='c:\test long titles.xls' style=styles.kb&lt;BR /&gt;
    options(embedded_titles='yes'&lt;BR /&gt;
            gridlines='yes'&lt;BR /&gt;
            autofit_height='no'&lt;BR /&gt;
            row_heights='0,0,0,50,0,0,0');&lt;BR /&gt;
                       &lt;BR /&gt;
ods tagsets.excelxp options(sheet_name='XXX XXXXX');&lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
                 &lt;BR /&gt;
title f="Century Gothic" h=8pt "^{style [protectspecialchars=off font_size=8pt]&amp;amp;t1%str(&amp;amp;#10;)&amp;amp;t2 %str(&amp;amp;#10;)&amp;amp;t3 }";&lt;BR /&gt;
proc print data=sashelp.class&lt;BR /&gt;
  style(column)={cellwidth=1.75in};&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close; &lt;BR /&gt;
[/pre]</description>
      <pubDate>Sat, 18 Sep 2010 03:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73181#M8334</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-18T03:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODS ExcelXP Tagset &amp; Very Long Titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73182#M8335</link>
      <description>My title is all in the A1 cell and does not span the other columns.  &lt;BR /&gt;
&lt;BR /&gt;
I'm using Excel 2003, SAS 9.2 (2M2), and excelxp tagset (8/25/10).&lt;BR /&gt;
&lt;BR /&gt;
TIA,&lt;BR /&gt;
Kim</description>
      <pubDate>Tue, 21 Sep 2010 22:42:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73182#M8335</guid>
      <dc:creator>KimLeBouton</dc:creator>
      <dc:date>2010-09-21T22:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODS ExcelXP Tagset &amp; Very Long Titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73183#M8336</link>
      <description>A follow-up.&lt;BR /&gt;
&lt;BR /&gt;
I was able to get this to work with the &lt;B&gt;merge_titles_footnotes='yes'.&lt;/B&gt;  I was able to turn off the style=.&lt;BR /&gt;
&lt;BR /&gt;
options&lt;BR /&gt;
	(embedded_titles='yes' &lt;BR /&gt;
		embedded_footnotes='yes'            &lt;BR /&gt;
		gridlines='yes'            &lt;BR /&gt;
		autofit_height='no' &lt;BR /&gt;
		merge_titles_footnotes='yes' &lt;BR /&gt;
		row_heights='0,0,0,15,0,0,0');                       &lt;BR /&gt;
ods tagsets.excelxp options(sheet_name='XXX XXXXX');&lt;BR /&gt;
ods escapechar='^';                 &lt;BR /&gt;
title f="Century Gothic" h=8pt "^{style [protectspecialchars=off font_size=8pt]&amp;amp;t1%str(
)&amp;amp;t2 %str(
)&amp;amp;t3 }";&lt;BR /&gt;
title2 test test;&lt;BR /&gt;
footnote footnote1;&lt;BR /&gt;
proc print data=sashelp.class  style(column)={cellwidth=1.75in};&lt;BR /&gt;
sum height;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close; &lt;BR /&gt;
&lt;BR /&gt;
Thanks for your write-up.  It was very, very helpful.&lt;BR /&gt;
&lt;BR /&gt;
Kim LeBouton</description>
      <pubDate>Wed, 22 Sep 2010 00:39:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73183#M8336</guid>
      <dc:creator>KimLeBouton</dc:creator>
      <dc:date>2010-09-22T00:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODS ExcelXP Tagset &amp; Very Long Titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73184#M8337</link>
      <description>Hi:&lt;BR /&gt;
  When I used Office 2007 to open the file generated by my code, the title did span the entire table. It must be something different between 2003 vs 2007. I did not have to use the Merge_titles_footnotes suboption -- but it's nice to know that it will work in a situation like this!&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 22 Sep 2010 14:57:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73184#M8337</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-22T14:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: ODS ExcelXP Tagset &amp; Very Long Titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73185#M8338</link>
      <description>This has become one of my favorite techniques, but one other question.&lt;BR /&gt;
&lt;BR /&gt;
What if my very long titles have special characters?  &lt;BR /&gt;
&lt;BR /&gt;
For example, %t1, %t2 and %t3 become as follows:&lt;BR /&gt;
&lt;BR /&gt;
%let t1=xx "xxxxx" xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;%let t2=yyyyyy's yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy;%let t3=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz;&lt;BR /&gt;
&lt;BR /&gt;
TIA,&lt;BR /&gt;
Kim LeBouton</description>
      <pubDate>Thu, 28 Oct 2010 23:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73185#M8338</guid>
      <dc:creator>KimLeBouton</dc:creator>
      <dc:date>2010-10-28T23:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS ExcelXP Tagset &amp; Very Long Titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73186#M8339</link>
      <description>Hi:&lt;BR /&gt;
  I'm not sure. Do your very long titles REALLY have NO spaces between the letters except in a few places???&lt;BR /&gt;
&lt;BR /&gt;
  I'm guessing that you'd have to use macro quoting functions to "protect" the special characters. Or sometimes I take the easy way out and try the HTML character entities with a simple %STR or %NRSTR. I haven't tested them all, but Excel seems OK with &amp;amp;quot; for double quote marks....and some of the others that I used here:&lt;BR /&gt;
[pre]&lt;BR /&gt;
%let t1=%str(Mary Poppins%nrstr(&amp;amp;reg;) says %nrstr(&amp;amp;quot;)supercalifragilisticexpealidocious%nrstr(&amp;amp;quot;).);&lt;BR /&gt;
%let t2=%nrstr(I love the chimney sweep%'s song Chim-Chim-Cheree);&lt;BR /&gt;
%let t3=%str(zz%nrstr(&amp;amp;oslash;)zzz%nrstr(&amp;amp;copy;) zzzzz %nrstr(&amp;amp;szlig;) zzzz zzzz %nrstr(&amp;amp;ouml;) zzz z z zzz zzzz zzzz zz);&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
which shows up for me as:&lt;BR /&gt;
Mary Poppins® says "supercalifragilisticexpealidocious".&lt;BR /&gt;
I love the chimney sweep's song Chim-Chim-Cheree &lt;BR /&gt;
zzøzzz© zzzzz ß zzzz zzzz ö zzz z z zzz zzzz zzzz zz&lt;BR /&gt;
  &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 29 Oct 2010 01:10:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73186#M8339</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-10-29T01:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: ODS ExcelXP Tagset &amp; Very Long Titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73187#M8340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is between style and &amp;amp;t1? I tried =, space and nothing, none of them work perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;style &lt;A _jive_internal="true" data-containerid="6" data-containertype="14" data-objectid="42955" data-objecttype="2" href="https://communities.sas.com/message/42955#42955"&gt;Re: ODS ExcelXP Tagset &amp;amp; Very Long Titles&lt;/A&gt;&amp;amp;t1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 15:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73187#M8340</guid>
      <dc:creator>KCKC</dc:creator>
      <dc:date>2013-06-20T15:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: ODS ExcelXP Tagset &amp; Very Long Titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73188#M8341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;figured it out myself. add a style in between should work&lt;/P&gt;&lt;P&gt;^{style &lt;FONT color="black"&gt; &amp;amp;t1...}&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 04:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-ExcelXP-Tagset-Very-Long-Titles/m-p/73188#M8341</guid>
      <dc:creator>KCKC</dc:creator>
      <dc:date>2013-06-21T04:07:05Z</dc:date>
    </item>
  </channel>
</rss>

