<?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 EXCEL — Why are titles inconsistent on two different tabs? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-Why-are-titles-inconsistent-on-two-different-tabs/m-p/831252#M25917</link>
    <description>&lt;P&gt;I use ODS EXCEL to create some text and plots. I want two tabs in my ODS EXCEL output, that part works fine. You will notice that in the code below, the exact same code is used twice, once before the &lt;FONT face="courier new,courier"&gt;ods excel options(sheet_interval='NOW');&lt;/FONT&gt; and then after&amp;nbsp;&lt;FONT face="courier new,courier"&gt;ods excel options(sheet_interval='NOW');&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember ... exact same code generates the two tabs, but inconsistent titles on the two tabs. Why? How do I fix this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="test.xlsx" options(embedded_titles='YES' sheet_interval='NONE');
title "Print of SASHELP.CLASS";
proc print data=sashelp.class(obs=10);
id name;
var age sex height weight;
run;
title;
ods text="^{style [color=black width=100% textalign=l] Footnote goes here}";
proc sgplot data=sashelp.class(obs=10);
scatter x=height y=weight;
run;

ods excel options(sheet_interval='NOW');
title "Print of SASHELP.CLASS";
proc print data=sashelp.class(obs=10);
id name;
var age sex height weight;
run;
title;
ods text="^{style [color=black width=100% textalign=l] Footnote goes here}";
proc sgplot data=sashelp.class(obs=10);
scatter x=height y=weight;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output on tab 1 —&amp;nbsp; note that the title Print of SASHELP.CLASS appears only at the top, which is what I want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1661953180877.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74900i09E27900ADC24140/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaigeMiller_0-1661953180877.png" alt="PaigeMiller_0-1661953180877.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output on tab 2 — Note that the title appears twice, not what I want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_1-1661953245173.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74902i97367152A0156B57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaigeMiller_1-1661953245173.png" alt="PaigeMiller_1-1661953245173.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2022 13:42:34 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2022-08-31T13:42:34Z</dc:date>
    <item>
      <title>ODS EXCEL — Why are titles inconsistent on two different tabs?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-Why-are-titles-inconsistent-on-two-different-tabs/m-p/831252#M25917</link>
      <description>&lt;P&gt;I use ODS EXCEL to create some text and plots. I want two tabs in my ODS EXCEL output, that part works fine. You will notice that in the code below, the exact same code is used twice, once before the &lt;FONT face="courier new,courier"&gt;ods excel options(sheet_interval='NOW');&lt;/FONT&gt; and then after&amp;nbsp;&lt;FONT face="courier new,courier"&gt;ods excel options(sheet_interval='NOW');&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember ... exact same code generates the two tabs, but inconsistent titles on the two tabs. Why? How do I fix this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="test.xlsx" options(embedded_titles='YES' sheet_interval='NONE');
title "Print of SASHELP.CLASS";
proc print data=sashelp.class(obs=10);
id name;
var age sex height weight;
run;
title;
ods text="^{style [color=black width=100% textalign=l] Footnote goes here}";
proc sgplot data=sashelp.class(obs=10);
scatter x=height y=weight;
run;

ods excel options(sheet_interval='NOW');
title "Print of SASHELP.CLASS";
proc print data=sashelp.class(obs=10);
id name;
var age sex height weight;
run;
title;
ods text="^{style [color=black width=100% textalign=l] Footnote goes here}";
proc sgplot data=sashelp.class(obs=10);
scatter x=height y=weight;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output on tab 1 —&amp;nbsp; note that the title Print of SASHELP.CLASS appears only at the top, which is what I want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1661953180877.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74900i09E27900ADC24140/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaigeMiller_0-1661953180877.png" alt="PaigeMiller_0-1661953180877.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output on tab 2 — Note that the title appears twice, not what I want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_1-1661953245173.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/74902i97367152A0156B57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaigeMiller_1-1661953245173.png" alt="PaigeMiller_1-1661953245173.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 13:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-Why-are-titles-inconsistent-on-two-different-tabs/m-p/831252#M25917</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-31T13:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL — Why are titles inconsistent on two different tabs?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-Why-are-titles-inconsistent-on-two-different-tabs/m-p/831295#M25918</link>
      <description>Try this replacement for your first line of code:&lt;BR /&gt;ods excel file="test.xlsx" options(embedded_titles='ON' embed_titles_once='ON' sheet_interval='NONE');</description>
      <pubDate>Wed, 31 Aug 2022 15:50:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-Why-are-titles-inconsistent-on-two-different-tabs/m-p/831295#M25918</guid>
      <dc:creator>svh</dc:creator>
      <dc:date>2022-08-31T15:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL — Why are titles inconsistent on two different tabs?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-Why-are-titles-inconsistent-on-two-different-tabs/m-p/831301#M25919</link>
      <description>&lt;P&gt;embed_titles_once='ON' seems to fix the problem. I never used that one before. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 16:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-EXCEL-Why-are-titles-inconsistent-on-two-different-tabs/m-p/831301#M25919</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-08-31T16:22:30Z</dc:date>
    </item>
  </channel>
</rss>

