<?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: Filter by current fiscal year using a Macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filter-by-current-fiscal-year-using-a-Macro/m-p/83934#M18125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the following macros using your &amp;amp;date one to subset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;data _null_ ;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; call symput('fstart',intnx('year.4',&amp;amp;date,0,'b')) ;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; call symput('fend',intnx('year.4',&amp;amp;date,1,'b')-1) ;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Sep 2013 21:07:15 GMT</pubDate>
    <dc:creator>SteveNZ</dc:creator>
    <dc:date>2013-09-16T21:07:15Z</dc:date>
    <item>
      <title>Filter by current fiscal year using a Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filter-by-current-fiscal-year-using-a-Macro/m-p/83933#M18124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query that selects a single day's data using the macro &amp;amp;date. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Create table work.temptpc&lt;/P&gt;&lt;P&gt;select t1.cc, t1.turn_dt, t1.delay_hrs&lt;/P&gt;&lt;P&gt;from imcs.pay_tpc_prd_a t1&lt;/P&gt;&lt;P&gt;where turn_date = "&amp;amp;date"d&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is I now would like the query to also grab (filter) our fiscal year data from imcs.pay_tpc_prd_a from the date selected using macro &amp;amp;date.&amp;nbsp; Our fiscal year is April 1 - March 31. &lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; If the date selected was September 1, 2013, the fiscal year would be April 1, 2013 - March 31, 2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance,&lt;/P&gt;&lt;P&gt;Lori&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 19:22:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filter-by-current-fiscal-year-using-a-Macro/m-p/83933#M18124</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2013-09-16T19:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filter by current fiscal year using a Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filter-by-current-fiscal-year-using-a-Macro/m-p/83934#M18125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the following macros using your &amp;amp;date one to subset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;data _null_ ;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; call symput('fstart',intnx('year.4',&amp;amp;date,0,'b')) ;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; call symput('fend',intnx('year.4',&amp;amp;date,1,'b')-1) ;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 21:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filter-by-current-fiscal-year-using-a-Macro/m-p/83934#M18125</guid>
      <dc:creator>SteveNZ</dc:creator>
      <dc:date>2013-09-16T21:07:15Z</dc:date>
    </item>
  </channel>
</rss>

