<?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 embed_titles_once for tabulate tables in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelXP-embed-titles-once-for-tabulate-tables/m-p/16454#M3467</link>
    <description>This is interesting.  Apparently embed titles only once only applies to bygroups...&lt;BR /&gt;
&lt;BR /&gt;
Removing the outer &lt;BR /&gt;
&lt;BR /&gt;
do/if cmp($sheet_interval, "bygroup");&lt;BR /&gt;
&lt;BR /&gt;
Will fix the problem.&lt;BR /&gt;
&lt;BR /&gt;
Here is a snippet of the offending code.  &lt;BR /&gt;
&lt;BR /&gt;
 define event embedded_title;&lt;BR /&gt;
        break /if ^$embedded_titles;&lt;BR /&gt;
        break /if ^$titles;&lt;BR /&gt;
&lt;BR /&gt;
        do /if cmp($sheet_interval, "bygroup");&lt;BR /&gt;
           do /if $one_embedded_title_set;&lt;BR /&gt;
               unset $titles /breakif $worksheet_has_titles;&lt;BR /&gt;
               set $worksheet_has_titles "True";&lt;BR /&gt;
           done;&lt;BR /&gt;
        done;</description>
    <pubDate>Mon, 16 Nov 2009 20:39:58 GMT</pubDate>
    <dc:creator>Eric_SAS</dc:creator>
    <dc:date>2009-11-16T20:39:58Z</dc:date>
    <item>
      <title>excelXP embed_titles_once for tabulate tables</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelXP-embed-titles-once-for-tabulate-tables/m-p/16453#M3466</link>
      <description>For proc tabulate, I had hoped to avoid embedding title more than once, with the option embed_titles_once='yes', when sheet_interval='proc' and more than one table.&lt;BR /&gt;
On v1.94, 09/09/12 of the tagsets, it repeated the title for each table.&lt;BR /&gt;
Here is my demo code[pre]ods tagsets.excelxp  file='demo.xml'&lt;BR /&gt;
    options(   sheet_name='demo'&lt;BR /&gt;
           SHEET_INTERVAL='proc'&lt;BR /&gt;
          Embedded_Titles='yes'&lt;BR /&gt;
        Embed_Titles_Once='yes' )&lt;BR /&gt;
    ;&lt;BR /&gt;
title "test excelXP Embed_Titles_Once='yes' "&lt;BR /&gt;
    ;&lt;BR /&gt;
proc tabulate data= sashelp.class ;&lt;BR /&gt;
  class age ;&lt;BR /&gt;
  var             height weight ;&lt;BR /&gt;
  table age all, (height weight)*mean=' '  / box= 'means' ;&lt;BR /&gt;
  table age all, (height weight)*max= ' '  / box= 'max s' ;&lt;BR /&gt;
run&lt;BR /&gt;
    ;&lt;BR /&gt;
ods tagsets.excelxp close&lt;BR /&gt;
    ;[/pre]&lt;BR /&gt;
The title appears twice.&lt;BR /&gt;
&lt;BR /&gt;
What options can I add to reduce this to just one title in the worksheet.&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 13 Nov 2009 12:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelXP-embed-titles-once-for-tabulate-tables/m-p/16453#M3466</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-11-13T12:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: excelXP embed_titles_once for tabulate tables</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelXP-embed-titles-once-for-tabulate-tables/m-p/16454#M3467</link>
      <description>This is interesting.  Apparently embed titles only once only applies to bygroups...&lt;BR /&gt;
&lt;BR /&gt;
Removing the outer &lt;BR /&gt;
&lt;BR /&gt;
do/if cmp($sheet_interval, "bygroup");&lt;BR /&gt;
&lt;BR /&gt;
Will fix the problem.&lt;BR /&gt;
&lt;BR /&gt;
Here is a snippet of the offending code.  &lt;BR /&gt;
&lt;BR /&gt;
 define event embedded_title;&lt;BR /&gt;
        break /if ^$embedded_titles;&lt;BR /&gt;
        break /if ^$titles;&lt;BR /&gt;
&lt;BR /&gt;
        do /if cmp($sheet_interval, "bygroup");&lt;BR /&gt;
           do /if $one_embedded_title_set;&lt;BR /&gt;
               unset $titles /breakif $worksheet_has_titles;&lt;BR /&gt;
               set $worksheet_has_titles "True";&lt;BR /&gt;
           done;&lt;BR /&gt;
        done;</description>
      <pubDate>Mon, 16 Nov 2009 20:39:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelXP-embed-titles-once-for-tabulate-tables/m-p/16454#M3467</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2009-11-16T20:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: excelXP embed_titles_once for tabulate tables</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelXP-embed-titles-once-for-tabulate-tables/m-p/16455#M3468</link>
      <description>many thanks, Eric&lt;BR /&gt;
&lt;BR /&gt;
that is tested just fine on my "home" sas9.2&lt;BR /&gt;
I'll try the client office tomorrow</description>
      <pubDate>Mon, 16 Nov 2009 21:08:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelXP-embed-titles-once-for-tabulate-tables/m-p/16455#M3468</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-11-16T21:08:26Z</dc:date>
    </item>
  </channel>
</rss>

