<?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: Title and Footnote could not be shown in the Output Excel file? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-could-not-be-shown-in-the-Output-Excel-file/m-p/954035#M372660</link>
    <description>&lt;P&gt;Did you get an error message when you ran that code?&amp;nbsp; What you posted has an extra semicolon that splits the first ODS EXCEL statement into two separate statements.&amp;nbsp; An ODS statement and an OPTIONS statement.&lt;/P&gt;
&lt;PRE&gt;514  ods excel file="Pathway\LIVD_LOOKUP_check_&amp;amp;tdate..xlsx";
WARNING: Apparent symbolic reference TDATE not resolved.
515      options(sheet_interval="none" embedded_titles="yes" embedded_footnotes="yes" flow="tables")

-----------------------------------
                                                                                                   2
515! ;

ERROR 2-12: Invalid option name.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2024 16:55:15 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-12-18T16:55:15Z</dc:date>
    <item>
      <title>Title and Footnote could not be shown in the Output Excel file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-could-not-be-shown-in-the-Output-Excel-file/m-p/954034#M372659</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following codes for the Excel file output. However, the title and footnote aren't shown in the Excel file.&amp;nbsp; Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let bdate1=2004_01_14; /* The most updated date to extracted LIVD table */
%let bdate2=2014_02_17; /* The most updated date to extracted LOOKUP table */
%let footie=%str(LIVD as of &amp;amp;bdate1. &amp;amp; LOOKUP as of &amp;amp;bdate2.);
%let tdate=%sysfunc(today(), yymmddn8.); /* Generate today's date for filename */

ods excel file="Pathway\LIVD_LOOKUP_check_&amp;amp;tdate..xlsx";
  	options(sheet_interval="none" embedded_titles="yes" embedded_footnotes="yes" flow="tables");

ods excel options(sheet_name="LIVD");
Proc print data=LIVD_;
   Title "LIVD - &amp;amp;bdate1.";
run;

ods excel options(sheet_name="LOOPUP");
Proc print data=test_lookup; 
	title "LOOKUP - &amp;amp;bdate2.";;
run;

ods excel options(sheet_name="Unmatched_LIVD");
Proc print data=Unmatched_LIVD;
	title "Codes in LIVD but not in LOOPUP";
	footnote "&amp;amp;footie";
run;

ods excel options(sheet_name="Unmatched_LOOPUP");
Proc print data=Unmatched_Lookup;
	title "Codes in LOOPUP but not in LIVD";
	footnote "&amp;amp;footie";
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Dec 2024 16:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-could-not-be-shown-in-the-Output-Excel-file/m-p/954034#M372659</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2024-12-18T16:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Title and Footnote could not be shown in the Output Excel file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-could-not-be-shown-in-the-Output-Excel-file/m-p/954035#M372660</link>
      <description>&lt;P&gt;Did you get an error message when you ran that code?&amp;nbsp; What you posted has an extra semicolon that splits the first ODS EXCEL statement into two separate statements.&amp;nbsp; An ODS statement and an OPTIONS statement.&lt;/P&gt;
&lt;PRE&gt;514  ods excel file="Pathway\LIVD_LOOKUP_check_&amp;amp;tdate..xlsx";
WARNING: Apparent symbolic reference TDATE not resolved.
515      options(sheet_interval="none" embedded_titles="yes" embedded_footnotes="yes" flow="tables")

-----------------------------------
                                                                                                   2
515! ;

ERROR 2-12: Invalid option name.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 16:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-could-not-be-shown-in-the-Output-Excel-file/m-p/954035#M372660</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-12-18T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Title and Footnote could not be shown in the Output Excel file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-could-not-be-shown-in-the-Output-Excel-file/m-p/954036#M372661</link>
      <description>It's not like that, I fixed it by adding the option to each sheet output option.</description>
      <pubDate>Wed, 18 Dec 2024 17:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-could-not-be-shown-in-the-Output-Excel-file/m-p/954036#M372661</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2024-12-18T17:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Title and Footnote could not be shown in the Output Excel file?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-could-not-be-shown-in-the-Output-Excel-file/m-p/954040#M372664</link>
      <description>&lt;P&gt;If it wasn't because the options did not run then it was because you told it NOT to make a new sheet.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel 
  file="c:\downloads\embedded_titles.xlsx"
	options(sheet_interval="none"
          embedded_titles="yes"
          embedded_footnotes="yes" 
          flow="tables")
;

ods excel options(sheet_name="MALES");
proc print data=sashelp.class;
  where sex='M';
  Title "Males Only";
run;

ods excel options(sheet_name="FEMALES");
proc print data=sashelp.class;
  where sex='F';
  Title "Females Only";
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1734542951775.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103157i1F5E079BBF37829E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1734542951775.png" alt="Tom_0-1734542951775.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you change the sheet name you need also tell it to start a new sheet.&amp;nbsp; So either set the SHEET_INTERVAL option to "PROC" or tell it start and new page when you change the name.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 17:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Title-and-Footnote-could-not-be-shown-in-the-Output-Excel-file/m-p/954040#M372664</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-12-18T17:29:22Z</dc:date>
    </item>
  </channel>
</rss>

