<?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 Footnote Display in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Footnote-Display/m-p/486769#M126707</link>
    <description>&lt;P class="p1"&gt;Hi,&lt;/P&gt;&lt;P class="p1"&gt;I am trying to write a code where the output has to displayed as per the footnotes which are given below.&lt;/P&gt;&lt;P class="p1"&gt;(1) I = age &amp;gt;=55; II = non-smoking, no CAD;&lt;/P&gt;&lt;P class="p1"&gt;(2) 1 = age&amp;gt;55,no CAD; 2= no death;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;ID is the unique variable.&lt;/P&gt;&lt;P class="p1"&gt;SLCT and SLCT1 are Char variables which are converted to Numeric.&lt;/P&gt;&lt;P class="p1"&gt;Any help in suggesting where the code has to corrected is appreciated.&lt;/P&gt;&lt;P class="p1"&gt;Thank you.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data step_01;
     set incl;
     by ID;
attrib SLCT_  SLCT1_length= 5;

/*Footnote (1)*/

      if SLCT= 'age&amp;gt;=55' then SLCT_=I;
      else if SLCT='non-smoking,no CAD' then SLCT_=II;
      
/*Footnote (2)*/

       if SLCT1= 'age&amp;gt;55,no CAD' then SLCT1_= 1;
       else if SLCT1='no death' then SLCT1_=2;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class="p1"&gt;Regards,&lt;/P&gt;&lt;P class="p1"&gt;Nasya&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 18:28:22 GMT</pubDate>
    <dc:creator>Nasya</dc:creator>
    <dc:date>2018-08-14T18:28:22Z</dc:date>
    <item>
      <title>Footnote Display</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Footnote-Display/m-p/486769#M126707</link>
      <description>&lt;P class="p1"&gt;Hi,&lt;/P&gt;&lt;P class="p1"&gt;I am trying to write a code where the output has to displayed as per the footnotes which are given below.&lt;/P&gt;&lt;P class="p1"&gt;(1) I = age &amp;gt;=55; II = non-smoking, no CAD;&lt;/P&gt;&lt;P class="p1"&gt;(2) 1 = age&amp;gt;55,no CAD; 2= no death;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;ID is the unique variable.&lt;/P&gt;&lt;P class="p1"&gt;SLCT and SLCT1 are Char variables which are converted to Numeric.&lt;/P&gt;&lt;P class="p1"&gt;Any help in suggesting where the code has to corrected is appreciated.&lt;/P&gt;&lt;P class="p1"&gt;Thank you.&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data step_01;
     set incl;
     by ID;
attrib SLCT_  SLCT1_length= 5;

/*Footnote (1)*/

      if SLCT= 'age&amp;gt;=55' then SLCT_=I;
      else if SLCT='non-smoking,no CAD' then SLCT_=II;
      
/*Footnote (2)*/

       if SLCT1= 'age&amp;gt;55,no CAD' then SLCT1_= 1;
       else if SLCT1='no death' then SLCT1_=2;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class="p1"&gt;Regards,&lt;/P&gt;&lt;P class="p1"&gt;Nasya&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Footnote-Display/m-p/486769#M126707</guid>
      <dc:creator>Nasya</dc:creator>
      <dc:date>2018-08-14T18:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Footnote Display</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Footnote-Display/m-p/486790#M126711</link>
      <description>&lt;P&gt;You are creating variables but I am not sure of the connection to "footnotes". In SAS Footnote usually refers to a Footnote statement which places text after the output of a procedure such as:&lt;/P&gt;
&lt;PRE&gt;Title "This is a title to place at the top of output";
Footnote "Only 5 observations were selected for printing";
proc print data=sashelp.class (obs=5);
run;
/* turn off title and footnote*/
title; footnote;&lt;/PRE&gt;
&lt;P&gt;Since you do not show how you are creating any output other than a data set you will need to provide more example of what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This statement assigns the value of the variable I to SLCT_. Is that the desired action?&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt; SLCT&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'age&amp;gt;=55'&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;then&lt;/SPAN&gt; SLCT_&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;I&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Footnote-Display/m-p/486790#M126711</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-14T19:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Footnote Display</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Footnote-Display/m-p/487433#M127017</link>
      <description>Hi ballardw,&lt;BR /&gt;Thank you for your response. I am not sure if that is a desired action, but I was trying to see if that will help me display the output as desired.&lt;BR /&gt;&lt;BR /&gt;Below is how the dataset appears:&lt;BR /&gt;&lt;BR /&gt;ID Case1 Case2&lt;BR /&gt;001 age &amp;gt;=55 age&amp;gt;55,no CAD&lt;BR /&gt;002 age &amp;gt;=55 no death&lt;BR /&gt;003 non-smoking, no CAD no death&lt;BR /&gt;004 non-smoking, no CAD age&amp;gt;55,no CAD&lt;BR /&gt;&lt;BR /&gt;ID(Variable is ID)- Character&lt;BR /&gt;Case1(Variable is SLCT)- Character&lt;BR /&gt;Case2(Variable is SLCT1)- Character&lt;BR /&gt;&lt;BR /&gt;Output Desired:&lt;BR /&gt;Foot notes:(1) I = age &amp;gt;=55; II = non-smoking, no CAD;(2) 1 = age&amp;gt;55,no CAD; 2= no death;&lt;BR /&gt;&lt;BR /&gt;ID Case1 Case2&lt;BR /&gt;001 I 1&lt;BR /&gt;002 I 2&lt;BR /&gt;003 II 2&lt;BR /&gt;004 II 1&lt;BR /&gt;&lt;BR /&gt;Will this information help you to understand what is expected? I appreciate your help.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Nasya</description>
      <pubDate>Thu, 16 Aug 2018 14:19:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Footnote-Display/m-p/487433#M127017</guid>
      <dc:creator>Nasya</dc:creator>
      <dc:date>2018-08-16T14:19:58Z</dc:date>
    </item>
  </channel>
</rss>

