<?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: i need to find out the months in which 4 sunday and 4 saturday are there in the last three years in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536677#M147510</link>
    <description>&lt;P&gt;... and every now and then, Maxim 9 does an end-around on me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2019 09:26:01 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-02-19T09:26:01Z</dc:date>
    <item>
      <title>i need to find out the months in which 4 sunday and 4 saturday are there in the last three years</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536661#M147500</link>
      <description>&lt;P&gt;i need to find out the months in which 4 sunday and 4 saturday are there in the last three years&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 07:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536661#M147500</guid>
      <dc:creator>prianca</dc:creator>
      <dc:date>2019-02-19T07:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: i need to find out the months in which 4 sunday and 4 saturday are there in the last three years</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536662#M147501</link>
      <description>&lt;P&gt;For every possible month length (31/30/29/28 days), determine the weekdays on which the first has to fall for the condition to be true.&lt;/P&gt;
&lt;P&gt;Then do a loop over months and look if the first falls on one of these weekdays.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 07:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536662#M147501</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-19T07:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: i need to find out the months in which 4 sunday and 4 saturday are there in the last three years</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536668#M147502</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/262724"&gt;@prianca&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the &lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p1kdveu0ry8ltxn1m3um2ntxs7d5.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank" rel="noopener"&gt;NWKDOM function&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
do y=2016 to 2018;
  do m=1 to 12;
    if (nwkdom(4,1,m,y)=nwkdom(5,1,m,y))
     &amp;amp; (nwkdom(4,7,m,y)=nwkdom(5,7,m,y)) then output;
  end;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(This assumes that you mean "&lt;EM&gt;exactly&lt;/EM&gt; 4 Sundays and &lt;EM&gt;exactly&lt;/EM&gt; 4 Saturdays" -- otherwise the task would be trivial, after all.)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 08:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536668#M147502</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-02-19T08:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: i need to find out the months in which 4 sunday and 4 saturday are there in the last three years</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536677#M147510</link>
      <description>&lt;P&gt;... and every now and then, Maxim 9 does an end-around on me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 09:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536677#M147510</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-19T09:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: i need to find out the months in which 4 sunday and 4 saturday are there in the last three years</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536684#M147514</link>
      <description>&lt;P&gt;find out the months in which last days are weekends????&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 10:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536684#M147514</guid>
      <dc:creator>prianca</dc:creator>
      <dc:date>2019-02-19T10:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: i need to find out the months in which 4 sunday and 4 saturday are there in the last three years</title>
      <link>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536686#M147516</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where weekday(intnx('month',mdy(month,1,year),0,'e')) in (1,7);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Feb 2019 10:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/i-need-to-find-out-the-months-in-which-4-sunday-and-4-saturday/m-p/536686#M147516</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-19T10:08:59Z</dc:date>
    </item>
  </channel>
</rss>

