<?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: SAS Macros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macros/m-p/367609#M87556</link>
    <description>&lt;P&gt;Yes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks alot&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2017 05:09:08 GMT</pubDate>
    <dc:creator>Talwinder</dc:creator>
    <dc:date>2017-06-16T05:09:08Z</dc:date>
    <item>
      <title>SAS Macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macros/m-p/367219#M87398</link>
      <description>&lt;P&gt;&lt;SPAN&gt;HI All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have below mentioned data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;data tab1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;input custid$ @6 saledate mmddyy10. @17 variety $9. @26 quantity ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;format saledate mmddyy10.;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;datalines;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;240w 02-07-2003 ginger 120&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;240w 02-07-2003 protea 180&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;356w 02-08-2003 heliconia 60&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;356w 02-08-2003 anthurium 300&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;188r 02-11-2003 ginger 24&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;188r 02-11-2003 anthurium 24&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;240w 02-12-2003 heliconia 48&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;240w 02-12-2003 protea 48&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;356w 02-12-2003 'ginger' 240&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i made below macro for same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;%macro new (flowertype=);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proc print data=tab1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where variety ="&amp;amp;flowertype" &amp;amp; custid="&amp;amp;id";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;%mend;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;%new (flowertype=ginger);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me how to make macro of dates. Like i make flowertype and its ginger when i will mention any flowertype in macro then it will give me print. Same way i want to make macro of Date. if i will mention particular date then macro will show me the result of that date only.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 04:22:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macros/m-p/367219#M87398</guid>
      <dc:creator>Talwinder</dc:creator>
      <dc:date>2017-06-15T04:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macros/m-p/367228#M87400</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
%macro new (date=);
  proc print data=tab1;
  where saledate ="&amp;amp;date"d ;
  run;
%mend;
%new (date=07feb2003);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Jun 2017 05:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macros/m-p/367228#M87400</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-15T05:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macros/m-p/367609#M87556</link>
      <description>&lt;P&gt;Yes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks alot&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2017 05:09:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macros/m-p/367609#M87556</guid>
      <dc:creator>Talwinder</dc:creator>
      <dc:date>2017-06-16T05:09:08Z</dc:date>
    </item>
  </channel>
</rss>

