<?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: ExcelXP Tagsets - Embed_titles_once option in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagsets-Embed-titles-once-option/m-p/18868#M3673</link>
    <description>thanks for the quick response cynthia!</description>
    <pubDate>Wed, 02 Mar 2011 12:04:07 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-03-02T12:04:07Z</dc:date>
    <item>
      <title>ExcelXP Tagsets - Embed_titles_once option</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagsets-Embed-titles-once-option/m-p/18866#M3671</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm trying to use the Embed_titles_once option but the titles will always appear before every table no matter where I &lt;BR /&gt;
&lt;BR /&gt;
I tried the sample code in an earlier thread (appended below) &amp;amp; the titles also appeared before the table.&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;ods tagsets.ExcelXP file="sample_report_v7_sql.xls" style=sasweb ;                 &lt;BR /&gt;
&lt;BR /&gt;
*Create First/Report Fake Title Page;&lt;BR /&gt;
ods tagsets.ExcelXp options(sheet_name='Title Page' sheet_interval='none');&lt;BR /&gt;
proc report data=sashelp.class nowd noheader;  where name = 'Alfred';  &lt;BR /&gt;
column name age height weight;run;                              &lt;BR /&gt;
&lt;BR /&gt;
*Create second tab;&lt;BR /&gt;
ods tagsets.ExcelXp options(embedded_titles='yes' EMBED_TITLES_ONCE='yes'sheet_name='2.4.1.2 Business Unit HA'sheet_interval='none');&lt;BR /&gt;
            &lt;BR /&gt;
proc report data=sashelp.class nowd;  title 'My Second Sheet';  &lt;BR /&gt;
where sex = 'F';run;            &lt;BR /&gt;
proc report data=sashelp.class nowd;  &lt;BR /&gt;
where sex = 'M';run;  &lt;BR /&gt;
        &lt;BR /&gt;
*Create third and fourth tab;         &lt;BR /&gt;
ods tagsets.ExcelXp options(embedded_titles='yes' EMBED_TITLES_ONCE='yes'    sheet_name='Consumer Business Unit HA'    sheet_interval='page');        &lt;BR /&gt;
proc report data=sashelp.shoes nowd;   title 'Slippers';   where product = 'Slipper' and region in ('Pacific', 'Western Europe');   &lt;BR /&gt;
define region / group;   break after region /page;run;      &lt;BR /&gt;
&lt;BR /&gt;
ods _all_ close;&lt;/I&gt;&lt;BR /&gt;
Is anyone able to advise where or how we can use the Embed_titles_once option?</description>
      <pubDate>Tue, 01 Mar 2011 10:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagsets-Embed-titles-once-option/m-p/18866#M3671</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-01T10:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP Tagsets - Embed_titles_once option</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagsets-Embed-titles-once-option/m-p/18867#M3672</link>
      <description>Hi:&lt;BR /&gt;
  If you change sheet_interval='none' to sheet_interval='table', then the embed_titles_once works as advertised. My guess is there's some interaction between embed_titles_once and sheet_interval='none' -- what happens is that ODS builds all of the first table and then builds all of the second table and then puts the 2 tables together in 1 bigger table. Part of that building the tables before putting them together must include the title. You'd have to work with Tech Support for a definitive explanation.&lt;BR /&gt;
&lt;BR /&gt;
  For the 2 PROC REPORT scenario, you can get rid of the title on the second output, by simply issuing a NULL TITLE statement as shown in the (simplified) code below.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods tagsets.ExcelXP file="c:\temp\sample_report_v7_sql.xls" style=sasweb &lt;BR /&gt;
    options(embedded_titles='yes' EMBED_TITLES_ONCE='yes' sheet_name='Something' sheet_interval='none');&lt;BR /&gt;
                     &lt;BR /&gt;
proc report data=sashelp.class nowd; &lt;BR /&gt;
title 'My Sheet title'; &lt;BR /&gt;
where sex = 'F';&lt;BR /&gt;
run; &lt;BR /&gt;
                   &lt;BR /&gt;
title;     /* reset title statement */&lt;BR /&gt;
              &lt;BR /&gt;
proc report data=sashelp.class nowd; &lt;BR /&gt;
where sex = 'M';&lt;BR /&gt;
run;&lt;BR /&gt;
      &lt;BR /&gt;
ods tagsets.Excelxp options(sheet_interval='table');&lt;BR /&gt;
       &lt;BR /&gt;
title 'A Sheet for Every Age';&lt;BR /&gt;
proc report data=sashelp.class nowd;&lt;BR /&gt;
  column age name sex height weight;&lt;BR /&gt;
  define age / order;&lt;BR /&gt;
  break after age / page;&lt;BR /&gt;
run;&lt;BR /&gt;
                &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 01 Mar 2011 15:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagsets-Embed-titles-once-option/m-p/18867#M3672</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-03-01T15:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: ExcelXP Tagsets - Embed_titles_once option</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagsets-Embed-titles-once-option/m-p/18868#M3673</link>
      <description>thanks for the quick response cynthia!</description>
      <pubDate>Wed, 02 Mar 2011 12:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ExcelXP-Tagsets-Embed-titles-once-option/m-p/18868#M3673</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-02T12:04:07Z</dc:date>
    </item>
  </channel>
</rss>

