<?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: Finding prior week number of the month in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Finding-prior-week-number-of-the-month/m-p/688707#M209279</link>
    <description>&lt;P&gt;Subtract 7 from your two TODAY() calls.&lt;/P&gt;</description>
    <pubDate>Sat, 03 Oct 2020 16:40:51 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-10-03T16:40:51Z</dc:date>
    <item>
      <title>Finding prior week number of the month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-prior-week-number-of-the-month/m-p/688706#M209278</link>
      <description>&lt;P&gt;By using the below code, I'm able to identify the current week number of the month. Thanks for the previous post by user: ballardw (&lt;SPAN style="text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: bold; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: #f3ffeb; text-decoration-color: initial; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/how-to-automatically-find-week-number-of-the-month/m-p/359850#M84651" target="_blank" rel="noopener"&gt;&lt;SPAN class="message-date-friendly" style="box-sizing: border-box;"&gt;Posted 05-18-2017 07:23 PM&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;)&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; week = week(today()) - week((intnx('month',today(),0,'B'))) +1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call symputx('week',week);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am facing difficulty, while running a report, which has to list the last week number......which means, if I am running a report now, it has to give me last week number, which is week4 (Here,&amp;nbsp;I need to run&amp;nbsp;a report that lists the&amp;nbsp;data from&amp;nbsp;last Monday to Saturday, i.e.&amp;nbsp;21st&amp;nbsp;September to &amp;nbsp;27th September).&lt;/P&gt;&lt;P&gt;Any kind of help is greatly appreciated. Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 16:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-prior-week-number-of-the-month/m-p/688706#M209278</guid>
      <dc:creator>West26</dc:creator>
      <dc:date>2020-10-03T16:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Finding prior week number of the month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-prior-week-number-of-the-month/m-p/688707#M209279</link>
      <description>&lt;P&gt;Subtract 7 from your two TODAY() calls.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 16:40:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-prior-week-number-of-the-month/m-p/688707#M209279</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-03T16:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Finding prior week number of the month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Finding-prior-week-number-of-the-month/m-p/688709#M209280</link>
      <description>&lt;P&gt;Thank you Sir. Appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 16:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Finding-prior-week-number-of-the-month/m-p/688709#M209280</guid>
      <dc:creator>West26</dc:creator>
      <dc:date>2020-10-03T16:47:14Z</dc:date>
    </item>
  </channel>
</rss>

