<?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: Disappearing Title? Tabulate and tagsets.excelxp in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31680#M4728</link>
    <description>Hi:&lt;BR /&gt;
  Have you looked in PRINT PREVIEW mode??? Without any other instructions from you, the SAS title goes into the Header area of the worksheet.&lt;BR /&gt;
 &lt;BR /&gt;
  There is an explicit sub-option...embedded_titles='yes' ... which will put the titles into the worksheet, but, by default, TAGSETS.EXCELXP works the same way that ODS RTF works - -titles go into the Header area.&lt;BR /&gt;
 &lt;BR /&gt;
  To find out about the suboptions, use this syntax:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods tagsets.ExcelXP file='j:\hl7\chemistry\tabulate_output.xml' &lt;BR /&gt;
                    options(doc='Help' Orientation='Landscape');&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
and the list of sub-options will be in the SAS log.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Wed, 10 Nov 2010 15:01:39 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-11-10T15:01:39Z</dc:date>
    <item>
      <title>Disappearing Title? Tabulate and tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31679#M4727</link>
      <description>[pre]&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.ExcelXP file='j:\hl7\chemistry\tabulate_output.xml' options(Orientation='Landscape');&lt;BR /&gt;
proc tabulate data = HL7.chlamydia_nodupes;&lt;BR /&gt;
   class Service_Category Sex_Category Race_Ethnicity Age_Category Combined_Result&lt;BR /&gt;
      /style = [background=white color=black fontweight=medium width=150 height=25];&lt;BR /&gt;
   classlev Service_Category Sex_Category Race_Ethnicity Age_Category &lt;BR /&gt;
      / Style = [Width=400 background=white color=black fontweight=medium height=25];&lt;BR /&gt;
   classlev Combined_Result / style = [Width=150 background=white color=black fontweight=medium];&lt;BR /&gt;
   keyword all / style = [Width=150 background=white color=black fontweight=medium];&lt;BR /&gt;
   table  All="Total"&lt;BR /&gt;
      Service_Category="Service" Sex_Category="Sex" &lt;BR /&gt;
      Race_Ethnicity="Race/Ethnicity" Age_Category="Age", &lt;BR /&gt;
      (Combined_Result="Test Results" All="Total" ) &lt;BR /&gt;
      * N="" * [style=[background=white color=black tagattr='format:##,##0' height=25]]&lt;BR /&gt;
      / &lt;BR /&gt;
      Box = [label="Number of Tests" style=[background=white color=black fontweight=medium height=25 width=250]] &lt;BR /&gt;
      misstext = "0" ;&lt;BR /&gt;
   format service_category service. Sex_Category Sex. Race_Ethnicity $Race_Ethnicity. Age_Category $Age_Category. &lt;BR /&gt;
      Combined_Result $Combined_Result.;&lt;BR /&gt;
   title "Number and Results of Tests";&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.ExcelXP close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I have a title specified in the proc, I'd also like to be able to add footers. But the title doesn't show up when I open up the file in Excel.&lt;BR /&gt;
&lt;BR /&gt;
The title is in the XML file:&lt;BR /&gt;
&lt;HEADER styleid="systemtitle" data="Number and Results of Tests"&gt;&lt;/HEADER&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Can anyone tell me why I can't see the title? Thanks!&lt;BR /&gt;
&lt;BR /&gt;
Jeff</description>
      <pubDate>Wed, 10 Nov 2010 14:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31679#M4727</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-10T14:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Disappearing Title? Tabulate and tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31680#M4728</link>
      <description>Hi:&lt;BR /&gt;
  Have you looked in PRINT PREVIEW mode??? Without any other instructions from you, the SAS title goes into the Header area of the worksheet.&lt;BR /&gt;
 &lt;BR /&gt;
  There is an explicit sub-option...embedded_titles='yes' ... which will put the titles into the worksheet, but, by default, TAGSETS.EXCELXP works the same way that ODS RTF works - -titles go into the Header area.&lt;BR /&gt;
 &lt;BR /&gt;
  To find out about the suboptions, use this syntax:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods tagsets.ExcelXP file='j:\hl7\chemistry\tabulate_output.xml' &lt;BR /&gt;
                    options(doc='Help' Orientation='Landscape');&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
and the list of sub-options will be in the SAS log.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 10 Nov 2010 15:01:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31680#M4728</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-11-10T15:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Disappearing Title? Tabulate and tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31681#M4729</link>
      <description>Thanks for your very quick help!&lt;BR /&gt;
&lt;BR /&gt;
Now I have to format that title to match the rest of the table. Using color and bcolor in the title statement:&lt;BR /&gt;
&lt;BR /&gt;
 title "Number and Results of Tests" bcolor= white color = black;&lt;BR /&gt;
&lt;BR /&gt;
This works in the output window but not in the spreadsheet.&lt;BR /&gt;
&lt;BR /&gt;
Jeff

Message was edited by: JCS</description>
      <pubDate>Wed, 10 Nov 2010 15:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31681#M4729</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-10T15:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Disappearing Title? Tabulate and tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31682#M4730</link>
      <description>I've tried a couple of different options but still can't control the color and background of the title as it shows up in the Excel file. Do I need to figure out a TAGATTR for this? Thanks!&lt;BR /&gt;
&lt;BR /&gt;
Jeff</description>
      <pubDate>Wed, 10 Nov 2010 15:57:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31682#M4730</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-10T15:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Disappearing Title? Tabulate and tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31683#M4731</link>
      <description>Hi:&lt;BR /&gt;
  It is much easier to change the title in one of these ways (listed in order by easiest to hardest method):&lt;BR /&gt;
1) change the style you use style=printer, style=minimal, style=sasweb to name just a few all have white backgrounds to the titles.&lt;BR /&gt;
          &lt;BR /&gt;
2) Use SAS/GRAPH options in the TITLE statement to alter title attributes (but the attribute change must be specified BEFORE the text string you are changing -- if you specify the changes AFTER the text string, they will have no impact.) Some attribute options you can change are:&lt;BR /&gt;
-- foreground color -- COLOR= or C=&lt;BR /&gt;
-- font value -- FONT= or F=&lt;BR /&gt;
-- font size -- HEIGHT= or H=&lt;BR /&gt;
-- font weight -- BOLD (single word attribute)&lt;BR /&gt;
         &lt;BR /&gt;
3) Use ODS ESCAPECHAR to specify TITLE string changes. I show the 9.1.3 syntax in TITLE1 and 9.2 syntax in TITLE2 in the #3 example below.&lt;BR /&gt;
                 &lt;BR /&gt;
4) Change the Style template that you use&lt;BR /&gt;
 &lt;BR /&gt;
  The first 3 methods are illustrated in the code posted at the end of this response. I do not generally recommend changing the style template just for the titles, since there are other, simpler, ways to accomplish that task.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
** Method 1: just use a different style;&lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\testtitle1.xls'&lt;BR /&gt;
    style=printer options(embedded_titles='yes');&lt;BR /&gt;
               &lt;BR /&gt;
title1 "1) Number and Results of Tests";&lt;BR /&gt;
title2 "Change the style you use so titles are black and white";&lt;BR /&gt;
                    &lt;BR /&gt;
proc tabulate data=sashelp.class;&lt;BR /&gt;
  class age;&lt;BR /&gt;
  var height;&lt;BR /&gt;
  table age,&lt;BR /&gt;
        height*(min mean median max);&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
                 &lt;BR /&gt;
** Method 2: use title attribute options;&lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\testtitle2.xls'&lt;BR /&gt;
    style=sasweb options(embedded_titles='yes');&lt;BR /&gt;
                             &lt;BR /&gt;
title1 color=black font='Courier New' bold h=12pt "2) Number and Results of Tests";&lt;BR /&gt;
title2 "Title is normally Blue";&lt;BR /&gt;
                       &lt;BR /&gt;
proc tabulate data=sashelp.class;&lt;BR /&gt;
  class age;&lt;BR /&gt;
  var height;&lt;BR /&gt;
  table age,&lt;BR /&gt;
        height*(min mean median max);&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
                  &lt;BR /&gt;
** Method 3: Use ODS ESCAPECHAR;&lt;BR /&gt;
ods tagsets.excelxp file='c:\temp\testtitle3.xls'&lt;BR /&gt;
    style=sasweb options(embedded_titles='yes');&lt;BR /&gt;
                          &lt;BR /&gt;
ods escapechar='^'; &lt;BR /&gt;
title1 "^S={color=black font_size=12pt font_face='Courier New' font_weight=bold}3) Number and Results of Tests";&lt;BR /&gt;
title2 "^{style[color=red font_weight=bold]Title is normally Blue but this title is red}";&lt;BR /&gt;
                                  &lt;BR /&gt;
proc tabulate data=sashelp.class;&lt;BR /&gt;
  class age;&lt;BR /&gt;
  var height;&lt;BR /&gt;
  table age,&lt;BR /&gt;
        height*(min mean median max);&lt;BR /&gt;
run;&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
              &lt;BR /&gt;
title;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 10 Nov 2010 16:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31683#M4731</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-11-10T16:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Disappearing Title? Tabulate and tagsets.excelxp</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31684#M4732</link>
      <description>Thanks! That did it. I was trying option 2, but it didn't work becasue I put the title text before the modifiers. Once I fixed that everything works!&lt;BR /&gt;
&lt;BR /&gt;
Jeff</description>
      <pubDate>Wed, 10 Nov 2010 16:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Disappearing-Title-Tabulate-and-tagsets-excelxp/m-p/31684#M4732</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-11-10T16:26:01Z</dc:date>
    </item>
  </channel>
</rss>

