<?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: Add a line in the top of footnotes in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-a-line-in-the-top-of-footnotes/m-p/427280#M20160</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12460"&gt;@jklaverstijn&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Your approach potentially looses the text of the last footnote (footnote10)&amp;nbsp; by only selecting the first 9. If you actually have a tenth footnote you would want to concatenate the text of&amp;nbsp;9 and 10 and hopefully insert a line break.&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jan 2018 17:07:03 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-01-12T17:07:03Z</dc:date>
    <item>
      <title>Add a line in the top of footnotes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-a-line-in-the-top-of-footnotes/m-p/427141#M20154</link>
      <description>&lt;P&gt;Hi SAS communities,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add a line in the top of footnotes . i test&amp;nbsp; that code but&amp;nbsp;unfortunately give any thing :&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods rtf text = "^S={outputwidth=100% j=l } { \line------------------------\line } ";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone know how to do it ..&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 09:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-a-line-in-the-top-of-footnotes/m-p/427141#M20154</guid>
      <dc:creator>amager</dc:creator>
      <dc:date>2018-01-12T09:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Add a line in the top of footnotes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-a-line-in-the-top-of-footnotes/m-p/427145#M20155</link>
      <description>&lt;P&gt;Ods text is not the same as footnotes.&amp;nbsp; A simple solution:&lt;/P&gt;
&lt;PRE&gt;footnote1 "-------------------------------------";
footnote2 "...";
...&lt;/PRE&gt;
&lt;P&gt;So move your footnotes down 1 and add a line (note you could also use "%sysfunc(repeat(-,30))"; to get a line of 30.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to keep 1 as is, then you would need:&lt;/P&gt;
&lt;PRE&gt;ods escapchar="^";

footnote1 "%sysfunc(repeat(-,30))^{newline}The rest of your footnote here";&lt;/PRE&gt;
&lt;P&gt;The ^{newline} is to break the line at that point (its RTF code).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another way would be to add a style which adds a border to the top only:&lt;/P&gt;
&lt;PRE&gt;footnote1 s={bordertopwidth=1 bordertopcolor=black} "Your footnote here";&lt;/PRE&gt;
&lt;P&gt;Something like that, am just typing from memory haven't tested.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 10:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-a-line-in-the-top-of-footnotes/m-p/427145#M20155</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-12T10:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add a line in the top of footnotes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-a-line-in-the-top-of-footnotes/m-p/427163#M20156</link>
      <description>&lt;P&gt;Due to an extended lunch I give my 2 cents after the fact. But I didn't want to withhold it. it does not do ODS by the way. I figured, since footnotes are stored in dictionary.titles aka sashelp.vtitle, a macro to add a new footnote and push down all the existing ones would be simple.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code for your entertainment:&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;options mprint;
title1 'titel 1';
title3 'titel 3';
footnote1 'footnote 1';
footnote2 'footnote 2';

%macro addfnote(newnote);

	proc sql;
		select text 
			into :fn1-:fn9
				from dictionary.titles
					where type='F'
						order by number
		;
	quit;

	%let num_notes=&amp;amp;sqlobs;
	%put NOTE: There are &amp;amp;num_notes defined footnotes:;

	/* Add the new footnote. */
	footnote1 &amp;amp;newnote;

	/* Push down all the existing footnotes. */
	%do i=1 %to &amp;amp;num_notes;
		%let next=%eval(&amp;amp;i + 1);
		footnote&amp;amp;next &amp;amp;&amp;amp;fn&amp;amp;i;
	%end;
%mend;

%addfnote(New footnote goes here);

proc print data=sashelp.class;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 12:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-a-line-in-the-top-of-footnotes/m-p/427163#M20156</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-01-12T12:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add a line in the top of footnotes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-a-line-in-the-top-of-footnotes/m-p/427280#M20160</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12460"&gt;@jklaverstijn&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Your approach potentially looses the text of the last footnote (footnote10)&amp;nbsp; by only selecting the first 9. If you actually have a tenth footnote you would want to concatenate the text of&amp;nbsp;9 and 10 and hopefully insert a line break.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 17:07:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Add-a-line-in-the-top-of-footnotes/m-p/427280#M20160</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-12T17:07:03Z</dc:date>
    </item>
  </channel>
</rss>

