<?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: How do I get multiple footnote lines in ODS EXCEL using options(print_footer=)? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-get-multiple-footnote-lines-in-ODS-EXCEL-using-options/m-p/438671#M20435</link>
    <description>&lt;P&gt;After opening a track with SAS Technical Support, Chevell Parker came up with this solution, which works like a charm! Thank you, Chevell!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;TITLE;
FOOTNOTE;

ODS excel file="test.xlsx" 
options(sheet_name='TEST_DATA01_05OCT2017D' orientation='portrait' 
print_footer="&amp;amp;amp;LInstitutional Research and Assessment (&amp;amp;name) &amp;amp;#10;The University of Alabama &amp;amp;amp;R &amp;amp;fdate, Page &amp;amp;amp;P of &amp;amp;amp;N &amp;amp;#10; &amp;amp;amp;Z &amp;amp;amp;F");

PROC REPORT DATA=sashelp.class;

define name / style(column)=[just=c];

RUN;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or, if you want the footnote in a macro variable as we do in our office, your code could look like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let footer_text =%str(&amp;amp;amp;LInstitutional Research and Assessment (&amp;amp;name)&amp;amp;#10;The University of Alabama &amp;amp;amp;R &amp;amp;fdate, Page &amp;amp;amp;P of &amp;amp;amp;N &amp;amp;#10; &amp;amp;amp;Z &amp;amp;amp;F);

TITLE;
FOOTNOTE;

ODS excel file="test.xlsx" 
options(sheet_name='TEST_DATA01_05OCT2017D' orientation='portrait' 
print_footer="&amp;amp;footer_text");

PROC REPORT DATA=sashelp.class;

define name / style(column)=[just=c];

RUN;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the output looks like this in both cases:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="solutiom.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18698i2839A294D5B91DFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="solutiom.jpg" alt="solutiom.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2018 15:50:54 GMT</pubDate>
    <dc:creator>ChristineKraft</dc:creator>
    <dc:date>2018-02-20T15:50:54Z</dc:date>
    <item>
      <title>How do I get multiple footnote lines in ODS EXCEL using options(print_footer=)?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-get-multiple-footnote-lines-in-ODS-EXCEL-using-options/m-p/437685#M20406</link>
      <description>&lt;P&gt;I just upgraded to SAS 9.4 TS1M5 from 9.4 TS1M1 and am excited to use ODS EXCEL. But when I use the print_footer option with the same macro variable (see below) I had been using with ODS TAGSETS.EXCELXP, it ignores the newline character. Has anyone else had this problem and know how to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Macro I have been using:&lt;/P&gt;&lt;PRE&gt;%let footer_text =&amp;amp;LInstitutional Research and Assessment (&amp;amp;name)&amp;amp;#13The University of Alabama&lt;BR /&gt; &amp;amp;R&amp;amp;fdate, Page &amp;amp;P of &amp;amp;N&amp;amp;#13&amp;amp;Z&amp;amp;F;&lt;/PRE&gt;&lt;P&gt;Footer in Excel that I used to get using above footer and ODS TAGSETS.EXCELXP:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="footer_desired.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18622iF46E45B60B9A869E/image-size/large?v=v2&amp;amp;px=999" role="button" title="footer_desired.jpg" alt="footer_desired.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Footer in Excel that I now get using the above macro variable and ODS EXCEL:&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="footer.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18624i496394FDE2AFF6AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="footer.jpg" alt="footer.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Using this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel 
	file="&amp;amp;fname"
	style = ad_hoc
	options(embedded_titles='yes' 
			embedded_footnotes='yes'
			print_footer="&amp;amp;footer_text"
			sheet_name="UA"
			orientation = 'portrait'
			absolute_column_width="12"
			fittopage = "yes"
			center_horizontal = 'yes'
			title_footnote_width = '7' 
	);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any help is appreciated! Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 16:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-get-multiple-footnote-lines-in-ODS-EXCEL-using-options/m-p/437685#M20406</guid>
      <dc:creator>ChristineKraft</dc:creator>
      <dc:date>2018-02-15T16:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get multiple footnote lines in ODS EXCEL using options(print_footer=)?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-get-multiple-footnote-lines-in-ODS-EXCEL-using-options/m-p/437984#M20419</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;&amp;nbsp; I do observe the difference you describe, I did not have the "ad_hoc" style, so used the HTMLBLUE style. In your code, you used &amp;amp;#13, I have seen an alternative to that is &amp;amp;#10; however, that produced the same results. You might want to open a track with Tech Support about this different behavior of the Alt+Enter for a new line with ODS EXCEL. &lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 14:38:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-get-multiple-footnote-lines-in-ODS-EXCEL-using-options/m-p/437984#M20419</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-02-16T14:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get multiple footnote lines in ODS EXCEL using options(print_footer=)?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-get-multiple-footnote-lines-in-ODS-EXCEL-using-options/m-p/437992#M20420</link>
      <description>Thanks! I will do that!</description>
      <pubDate>Fri, 16 Feb 2018 15:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-get-multiple-footnote-lines-in-ODS-EXCEL-using-options/m-p/437992#M20420</guid>
      <dc:creator>ChristineKraft</dc:creator>
      <dc:date>2018-02-16T15:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get multiple footnote lines in ODS EXCEL using options(print_footer=)?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-get-multiple-footnote-lines-in-ODS-EXCEL-using-options/m-p/438671#M20435</link>
      <description>&lt;P&gt;After opening a track with SAS Technical Support, Chevell Parker came up with this solution, which works like a charm! Thank you, Chevell!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;TITLE;
FOOTNOTE;

ODS excel file="test.xlsx" 
options(sheet_name='TEST_DATA01_05OCT2017D' orientation='portrait' 
print_footer="&amp;amp;amp;LInstitutional Research and Assessment (&amp;amp;name) &amp;amp;#10;The University of Alabama &amp;amp;amp;R &amp;amp;fdate, Page &amp;amp;amp;P of &amp;amp;amp;N &amp;amp;#10; &amp;amp;amp;Z &amp;amp;amp;F");

PROC REPORT DATA=sashelp.class;

define name / style(column)=[just=c];

RUN;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or, if you want the footnote in a macro variable as we do in our office, your code could look like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let footer_text =%str(&amp;amp;amp;LInstitutional Research and Assessment (&amp;amp;name)&amp;amp;#10;The University of Alabama &amp;amp;amp;R &amp;amp;fdate, Page &amp;amp;amp;P of &amp;amp;amp;N &amp;amp;#10; &amp;amp;amp;Z &amp;amp;amp;F);

TITLE;
FOOTNOTE;

ODS excel file="test.xlsx" 
options(sheet_name='TEST_DATA01_05OCT2017D' orientation='portrait' 
print_footer="&amp;amp;footer_text");

PROC REPORT DATA=sashelp.class;

define name / style(column)=[just=c];

RUN;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the output looks like this in both cases:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="solutiom.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18698i2839A294D5B91DFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="solutiom.jpg" alt="solutiom.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 15:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-get-multiple-footnote-lines-in-ODS-EXCEL-using-options/m-p/438671#M20435</guid>
      <dc:creator>ChristineKraft</dc:creator>
      <dc:date>2018-02-20T15:50:54Z</dc:date>
    </item>
  </channel>
</rss>

