<?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: footnote question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/740055#M231105</link>
    <description>&lt;P&gt;The pdf output works fine, even after playing with various margins,&amp;nbsp;page orientation, and footnote lengths.&amp;nbsp; The font specification is optional, I was testing with&amp;nbsp; large font sizes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%let fnt=%str('Helvetica', 8pt);
ods _all_ close; 
ods escapechar='^'; 
options nonumber nodate nocenter orientation=portrait papersize=letter 
	leftmargin=1.5cm rightmargin=1.5cm topmargin=1.5cm bottommargin=1.5cm;;
ods pdf file="&amp;amp;path./test.pdf" dpi=300 notoc; 
proc report data=sashelp.cars (obs=10) ps=48 ls=135 split='|';
column make Model;
run;
footnote1 "^S={}^S={font=(&amp;amp;fnt)} &amp;amp;ft.";
ods pdf close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.gif" style="width: 308px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59166iCF97B21C365FFFE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test.gif" alt="test.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 09 May 2021 17:58:20 GMT</pubDate>
    <dc:creator>ghosh</dc:creator>
    <dc:date>2021-05-09T17:58:20Z</dc:date>
    <item>
      <title>footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/739970#M231056</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a footnote question.&lt;/P&gt;
&lt;P&gt;In my real listing report I have over 10 footnotes, so I tried to concatenate some footnotes&amp;nbsp;together then output. But some concatenated footnote text length is too long, so they are truncated, like the below example.&lt;/P&gt;
&lt;P&gt;In this example&amp;nbsp;ls=135 and can not be changed,&amp;nbsp; and footnote text length is over 135, so the footnote text "BBBBBBB" was truncated in output. I know, if output is rtf or pdf, we have no this issue. But for listing,&amp;nbsp; I have not figured out a method to deal with it. Can someone help me out? Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let ft=%sysfunc(repeat(A, 135))BBBBBBBBBB;&lt;BR /&gt;%put &amp;amp;ft.;&lt;BR /&gt;proc printto print="xxxxxx\ft.lst" new; run;&lt;/P&gt;
&lt;P&gt;proc report data=sashelp.cars (obs=10) ps=48 ls=135 split='|';&lt;BR /&gt;column make Model;&lt;BR /&gt;run;&lt;BR /&gt;footnote1 "&amp;amp;ft.";&lt;BR /&gt;proc printto print=print; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 14:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/739970#M231056</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2021-05-08T14:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/739983#M231060</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Why are you displaying output as listing? Why not the standard HTML?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html;
footnote height=5pt 'little footnote';
proc print data=sashelp.class;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I do not think &lt;FONT color="#339966"&gt;&lt;STRONG&gt;height=&lt;/STRONG&gt;&lt;/FONT&gt; will work in 'ODS LISTING;'. You don't get an error but it will have no effect.&lt;/P&gt;
&lt;P&gt;I come back to you on ODS LISTING after the weekend.&lt;/P&gt;
&lt;P&gt;Might be that for ODS LISTING everything will become little (also the body of the report).&lt;/P&gt;
&lt;P&gt;Will see.&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 17:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/739983#M231060</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-05-08T17:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/739986#M231062</link>
      <description>&lt;P&gt;Change the LS (aka LINESIZE) setting if you want longer lines.&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 18:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/739986#M231062</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-08T18:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/739993#M231068</link>
      <description>Thank you for your suggestion. For some reason, we will transfer listing output as PDF  in the next step. So we can not output HTML and we have to set LS around 135 in order to fit PDF output.</description>
      <pubDate>Sat, 08 May 2021 19:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/739993#M231068</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2021-05-08T19:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/740007#M231079</link>
      <description>&lt;P&gt;Are the footnotes static?&amp;nbsp; just use a text editor to fit the content into 10*135 character limit.&lt;/P&gt;
&lt;P&gt;Are all of your reports using PROC REPORT?&amp;nbsp; If so why not move the footnotes into the body of the report instead. Then you would not have a limit of 10 footnotes.&lt;/P&gt;
&lt;P&gt;Are the footnotes short?&amp;nbsp; I have a macro from Tom Hoffman from 1997 that collapses multiple short strings into footnotes or titles.&lt;/P&gt;
&lt;PRE&gt;223  options mprint;
224  %align
225  (A: this is the first footnote
226  \B: this is the second footnote
227  \C: this is the third footnote which is longest
228  \D: this is the fourth footnote
229  ,tn=1
230  ,ft=f
231  )
MPRINT(ALIGN):   footnote1 "A: this is the first footnote                   B: this is the second footnote                  C: this is the thirdfootnote which is longest ";
MPRINT(ALIGN):   footnote2 "D: this is the fourth footnote                     ";&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 May 2021 21:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/740007#M231079</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-05-08T21:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/740055#M231105</link>
      <description>&lt;P&gt;The pdf output works fine, even after playing with various margins,&amp;nbsp;page orientation, and footnote lengths.&amp;nbsp; The font specification is optional, I was testing with&amp;nbsp; large font sizes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%let fnt=%str('Helvetica', 8pt);
ods _all_ close; 
ods escapechar='^'; 
options nonumber nodate nocenter orientation=portrait papersize=letter 
	leftmargin=1.5cm rightmargin=1.5cm topmargin=1.5cm bottommargin=1.5cm;;
ods pdf file="&amp;amp;path./test.pdf" dpi=300 notoc; 
proc report data=sashelp.cars (obs=10) ps=48 ls=135 split='|';
column make Model;
run;
footnote1 "^S={}^S={font=(&amp;amp;fnt)} &amp;amp;ft.";
ods pdf close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.gif" style="width: 308px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/59166iCF97B21C365FFFE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="test.gif" alt="test.gif" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 May 2021 17:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/740055#M231105</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2021-05-09T17:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: footnote question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/740155#M231146</link>
      <description>&lt;P&gt;Ghosh and Tom, Thank you very much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Yes. For PDF or rtf we do not need to worry about the footnote length.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I can put part of footnote into body through compute block in proc report.&lt;/P&gt;
&lt;P&gt;However, I cooperate with others and their method has limitations and I have&amp;nbsp; to put footnote in footnote statement and output as lst file first. At beginning, I thought maybe we have options to set footnote output in listing and let footnote turn over if it is too long, like RTF or PDF. I guess we have no that option for listing currently. Do not mind. Thanks again&lt;/P&gt;
&lt;P&gt;George&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 12:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/footnote-question/m-p/740155#M231146</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2021-05-10T12:20:18Z</dc:date>
    </item>
  </channel>
</rss>

