<?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: How find last 3 days of month in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315845#M68942</link>
    <description>Rules&lt;BR /&gt;1) only last 3 days of each month ,monthend flag get 1 and rest of dates it will be 0&lt;BR /&gt;&lt;BR /&gt;2) if it's Saturday,Sunday,Hollyday (or combination of those ) then monthend flag get 1</description>
    <pubDate>Thu, 01 Dec 2016 07:53:01 GMT</pubDate>
    <dc:creator>Badshaah</dc:creator>
    <dc:date>2016-12-01T07:53:01Z</dc:date>
    <item>
      <title>How find last 3 days of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315838#M68936</link>
      <description>How to find according to month which also contains Hollidays.</description>
      <pubDate>Thu, 01 Dec 2016 07:28:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315838#M68936</guid>
      <dc:creator>Badshaah</dc:creator>
      <dc:date>2016-12-01T07:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: How find last 3 days of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315839#M68937</link>
      <description>&lt;P&gt;what about saturdays/sundays? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315839#M68937</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2016-12-01T07:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: How find last 3 days of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315840#M68938</link>
      <description>&lt;P&gt;Calendar days, weekdays, or working days?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And what countries holidays?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you you looked at INTNX()?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:41:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315840#M68938</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-01T07:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: How find last 3 days of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315842#M68939</link>
      <description>Code required according to indian holiday&lt;BR /&gt;If last day is Saturday or Sunday or any holiday then they don't consider as last day else last day(only last 3 days of months)</description>
      <pubDate>Thu, 01 Dec 2016 07:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315842#M68939</guid>
      <dc:creator>Badshaah</dc:creator>
      <dc:date>2016-12-01T07:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How find last 3 days of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315844#M68941</link>
      <description>&lt;P&gt;Post all your rules please and a few examples.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315844#M68941</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-01T07:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How find last 3 days of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315845#M68942</link>
      <description>Rules&lt;BR /&gt;1) only last 3 days of each month ,monthend flag get 1 and rest of dates it will be 0&lt;BR /&gt;&lt;BR /&gt;2) if it's Saturday,Sunday,Hollyday (or combination of those ) then monthend flag get 1</description>
      <pubDate>Thu, 01 Dec 2016 07:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315845#M68942</guid>
      <dc:creator>Badshaah</dc:creator>
      <dc:date>2016-12-01T07:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: How find last 3 days of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315901#M68955</link>
      <description>&lt;P&gt;Data want;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do year=2006 to 2016;&lt;/P&gt;
&lt;P&gt;do month=1 to 12;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;date=MDY(month, 1, year);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do i=1 to 3;&lt;/P&gt;
&lt;P&gt;date=intnx('month', date, 0, 'e') + 1 - i;&lt;/P&gt;
&lt;P&gt;if weekday(date) in (1,7) or date in ( list of holidays) then not_working=1;&lt;/P&gt;
&lt;P&gt;else not_working=0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if i=1 then month_end =1; else month_end=0;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need to have a list of your holidays to verify holiday dates.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2016 11:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315901#M68955</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-01T11:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How find last 3 days of month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315909#M68956</link>
      <description>Thanks Reeza u r the best...&lt;BR /&gt;Grant salute</description>
      <pubDate>Thu, 01 Dec 2016 12:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-find-last-3-days-of-month/m-p/315909#M68956</guid>
      <dc:creator>Badshaah</dc:creator>
      <dc:date>2016-12-01T12:35:57Z</dc:date>
    </item>
  </channel>
</rss>

