<?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 Need help on SAS Macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-on-SAS-Macro/m-p/333391#M75112</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need some help on SAS macro. Let me state the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data table that has name, date, salary columns. The salary is missing for some names in some dates. I would like to produce a report in which I want to include the footnote that says "Salary is missing for Name=&amp;amp;name in date=&amp;amp;date.&lt;/P&gt;&lt;P&gt;Here is the sample data table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name Date Salary&lt;/P&gt;&lt;P&gt;Robert 01Feb2017 5000&lt;/P&gt;&lt;P&gt;Shyam 01Mar2017 2000&lt;/P&gt;&lt;P&gt;Dinesh 01May2017 3000&lt;/P&gt;&lt;P&gt;Shou 01Jul2017&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Rishi 01Sep2017 4000&lt;/P&gt;&lt;P&gt;Noral 01Dec2017 .&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Please help me on this. Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 14:32:12 GMT</pubDate>
    <dc:creator>UPRETIGOPI</dc:creator>
    <dc:date>2017-02-16T14:32:12Z</dc:date>
    <item>
      <title>Need help on SAS Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-on-SAS-Macro/m-p/333391#M75112</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need some help on SAS macro. Let me state the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data table that has name, date, salary columns. The salary is missing for some names in some dates. I would like to produce a report in which I want to include the footnote that says "Salary is missing for Name=&amp;amp;name in date=&amp;amp;date.&lt;/P&gt;&lt;P&gt;Here is the sample data table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name Date Salary&lt;/P&gt;&lt;P&gt;Robert 01Feb2017 5000&lt;/P&gt;&lt;P&gt;Shyam 01Mar2017 2000&lt;/P&gt;&lt;P&gt;Dinesh 01May2017 3000&lt;/P&gt;&lt;P&gt;Shou 01Jul2017&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Rishi 01Sep2017 4000&lt;/P&gt;&lt;P&gt;Noral 01Dec2017 .&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Please help me on this. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 14:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-on-SAS-Macro/m-p/333391#M75112</guid>
      <dc:creator>UPRETIGOPI</dc:creator>
      <dc:date>2017-02-16T14:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on SAS Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-on-SAS-Macro/m-p/333396#M75115</link>
      <description>&lt;P&gt;You mean something like this?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint ;
  select 'Name='||strip(name)||' in date='||strip(put(date,date9.)) INTO:footer separated by ' '
  from dataset
  where salary is missing ;
quit ;

footnote "Salary is missing for &amp;amp;footer." ;
proc print data=dataset ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Feb 2017 14:42:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-on-SAS-Macro/m-p/333396#M75115</guid>
      <dc:creator>ThierryHerrie</dc:creator>
      <dc:date>2017-02-16T14:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on SAS Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-on-SAS-Macro/m-p/333412#M75121</link>
      <description>&lt;P&gt;I don't think that FOOTNOTE is the right place in a report to list all names with missing salary,&lt;/P&gt;
&lt;P&gt;unless you are sure there are less than 10 names. You better create two reports:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title ' Salary given to';&lt;/P&gt;
&lt;P&gt;proc print data=have (where=(salary ne .)); &amp;nbsp;/* optiona NOOBS */&lt;/P&gt;
&lt;P&gt;var name date salary;&lt;/P&gt;
&lt;P&gt;sumvar salary;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title "Nmaes with missing salary";&lt;/P&gt;
&lt;P&gt;proc print data=have(where=(salary is missing));&lt;/P&gt;
&lt;P&gt;var name date;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 15:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-on-SAS-Macro/m-p/333412#M75121</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-02-16T15:13:18Z</dc:date>
    </item>
  </channel>
</rss>

