<?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: Too many or longer footnotes in Proc Report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Too-many-or-longer-footnotes-in-Proc-Report/m-p/724127#M224811</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt; however when I run this code normally, every thing in footnote aligned properly, but when I run in batch mode footnote is all over the place. Is there a solution for this? i&lt;/EM&gt;&lt;BR /&gt;Run &lt;STRONG&gt;proc options&lt;/STRONG&gt; and compare the differences between the interactive environment and the batch one.&lt;/P&gt;</description>
    <pubDate>Sat, 06 Mar 2021 07:02:25 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-03-06T07:02:25Z</dc:date>
    <item>
      <title>Too many or longer footnotes in Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Too-many-or-longer-footnotes-in-Proc-Report/m-p/724122#M224806</link>
      <description>&lt;P&gt;I recently came across the production of tables using proc report and ods. These tables have 12-13 lines of footnotes and some times bigger than 262 characters. I have gone through the SAS community for the best option i thought&amp;nbsp; to produce the footnotes in this situation is keeping the "one footnote statement" and use the long lines of footnotes with use of "^n" ods escapechar and "noquotelenmax". however when I run this code normally, every thing in footnote aligned properly, but when I run in batch mode footnote is all over the place. Is there a solution for this? is any other easy option for long footnotes more than 10! other than using the compute blocks. Please let me know your suggestions. Thanks&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods results; 
ODS RTF FILE="/folders/myfolders/TABLES/class.RTF";
ods escapechar="^";
options ls=190  NOQUOTELENMAX;
proc report data=sashelp.class nowd headskip  split="?" ;
 column Obs name sex age height weight ;
 define sex / width=3 center ;
 define age / width=5 ;
 define height / format=6.1 ;
 define weight / format=6.1 ;
 define obs / computed ;
 compute obs ;
 count+1 ;
 obs=count ;
 endcomp ;
 title2 'PROC REPORT, again' ;
footnote1 j=l "I would like to have a long foot note";
Footnote2 j = l "By default, PROC REPORT does not display an observation number column, which could be added with a computed variable. Also, note that the Height and Weight columns do not display consistently. This could be remedied by
adding a DEFINE statement for each of these columns and specifying a format^n
COMPUTE block for OBS (beginning with the COMPUTE OBS and ending with the ENDCOMP statement) specifies
how the column is populated. First, a counter, COUNT, is incremented with each pass through the data.^n The value of
COUNT is retained similar to a DATA step. The current value of the counter is then assigned to OBS.";
run ;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Mar 2021 04:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Too-many-or-longer-footnotes-in-Proc-Report/m-p/724122#M224806</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-03-06T04:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Too many or longer footnotes in Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Too-many-or-longer-footnotes-in-Proc-Report/m-p/724127#M224811</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; however when I run this code normally, every thing in footnote aligned properly, but when I run in batch mode footnote is all over the place. Is there a solution for this? i&lt;/EM&gt;&lt;BR /&gt;Run &lt;STRONG&gt;proc options&lt;/STRONG&gt; and compare the differences between the interactive environment and the batch one.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 07:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Too-many-or-longer-footnotes-in-Proc-Report/m-p/724127#M224811</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-06T07:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Too many or longer footnotes in Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Too-many-or-longer-footnotes-in-Proc-Report/m-p/724136#M224819</link>
      <description>&lt;P&gt;If you don't need the Footnote behavior, i.e. placing footnote into the footer area of a document, you might experiment with Proc ODSTEXT to create long text after a table.&lt;/P&gt;
&lt;P&gt;Instead of&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;Footnote2 j = l "By default, PROC REPORT does not display an observation number column, which could be added with a computed variable. Also, note that the Height and Weight columns do not display consistently. This could be remedied by
adding a DEFINE statement for each of these columns and specifying a format^n
COMPUTE block for OBS (beginning with the COMPUTE OBS and ending with the ENDCOMP statement) specifies
how the column is populated. First, a counter, COUNT, is incremented with each pass through the data.^n The value of
COUNT is retained similar to a DATA step. The current value of the counter is then assigned to OBS.";
run ;&lt;/LI-CODE&gt;
&lt;P&gt;You might try:&lt;/P&gt;
&lt;PRE&gt;run; /* end the proc report*/

Proc odstext;
p "By default, PROC REPORT does not display an observation number column, which could 
 be added with a computed variable. Also, note that the Height and Weight columns 
 do not display consistently. This could be remedied by adding a DEFINE statement 
 for each of these columns and specifying a";
p "COMPUTE block for OBS (beginning with the COMPUTE OBS and ending with the ENDCOMP 
  statement) specifies how the column is populated. First, a counter, COUNT, is 
 incremented with each pass through the data.";
p "The value of COUNT is retained similar to a DATA step. The current value of the 
 counter is then assigned to OBS.";
run ;&lt;/PRE&gt;
&lt;P&gt;The P basically means "start of paragraph". Each P statement can be followed by a style block.&lt;/P&gt;
&lt;P&gt;Also you can use a data set for the source text and create somewhat nifty blocks of text. Or Proc ODSLIST may be appropriate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, it is a good idea to add a Footnote; after the Proc to clear footnotes so they don't accidentally end up after other output.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 09:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Too-many-or-longer-footnotes-in-Proc-Report/m-p/724136#M224819</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-06T09:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Too many or longer footnotes in Proc Report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Too-many-or-longer-footnotes-in-Proc-Report/m-p/725011#M225129</link>
      <description>&lt;P&gt;It worked, Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 23:40:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Too-many-or-longer-footnotes-in-Proc-Report/m-p/725011#M225129</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-03-09T23:40:47Z</dc:date>
    </item>
  </channel>
</rss>

