<?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: Find data of the current days of week in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701823#M25818</link>
    <description>&lt;P&gt;Do you only want monday to friday?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shold we consider the case vairable?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Nov 2020 13:37:13 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2020-11-26T13:37:13Z</dc:date>
    <item>
      <title>current week</title>
      <link>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701820#M25817</link>
      <description />
      <pubDate>Fri, 11 Dec 2020 08:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701820#M25817</guid>
      <dc:creator>SASlearner97</dc:creator>
      <dc:date>2020-12-11T08:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Find data of the current days of week</title>
      <link>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701823#M25818</link>
      <description>&lt;P&gt;Do you only want monday to friday?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shold we consider the case vairable?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 13:37:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701823#M25818</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-11-26T13:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Find data of the current days of week</title>
      <link>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701825#M25819</link>
      <description>i want only monday to friday&lt;BR /&gt;the case variable is not important &lt;BR /&gt;&lt;BR /&gt;thank you</description>
      <pubDate>Thu, 26 Nov 2020 13:40:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701825#M25819</guid>
      <dc:creator>SASlearner97</dc:creator>
      <dc:date>2020-11-26T13:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find data of the current days of week</title>
      <link>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701827#M25820</link>
      <description>&lt;P&gt;Ok. See if the &lt;A href="https://sasnrd.com/sas-date-examples-intnx-intck/" target="_self"&gt;Intnx Function&lt;/A&gt; gives you what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input title $ case sending_date :ddmmyy10.;
format sending_date ddmmyy10.;
datalines;
a 0 27-11-2020
b 0 27-11-2020
c 1 27-11-2020
d 1 02-12-2020
e 1 09-11-2020
f 1 10-11-2020
g 0 13-11-2020
;

data want(drop=case sending_date);
   set have;
   array d {5} Monday Tuesday Wednesday Thursday Friday;
   if intnx('week', today(), 0, 'b') &amp;lt;= sending_date &amp;lt;= intnx('week', today(), 0, 'e') then do;
      d[weekday(sending_date) - 1] = sending_date;
      output;
   end;
   format Monday Tuesday Wednesday Thursday Friday ddmmyy10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Obs title Monday Tuesday Wednesday Thursday Friday 
1   a     .      .       .         .        27/11/2020 
2   b     .      .       .         .        27/11/2020 
3   c     .      .       .         .        27/11/2020 
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 11:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701827#M25820</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-03-04T11:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Find data of the current days of week</title>
      <link>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701828#M25821</link>
      <description>Thank you so much! it works !</description>
      <pubDate>Thu, 26 Nov 2020 14:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701828#M25821</guid>
      <dc:creator>SASlearner97</dc:creator>
      <dc:date>2020-11-26T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find data of the current days of week</title>
      <link>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701829#M25822</link>
      <description>&lt;P&gt;Anytime.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 14:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/current-week/m-p/701829#M25822</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-11-26T14:01:52Z</dc:date>
    </item>
  </channel>
</rss>

