<?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: Weekends in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Weekends/m-p/534399#M33017</link>
    <description>&lt;P&gt;Try this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
 do i = '01jan2019'd to '01feb2019'd;
   if weekday(i) = 6 then put i yymmdd10.;
 end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
    <pubDate>Mon, 11 Feb 2019 08:01:25 GMT</pubDate>
    <dc:creator>FredrikE</dc:creator>
    <dc:date>2019-02-11T08:01:25Z</dc:date>
    <item>
      <title>Weekends</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Weekends/m-p/534391#M33016</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2Dates.&lt;/P&gt;&lt;P&gt;Start-Date:01-01-2019&lt;/P&gt;&lt;P&gt;End-Date:01-02-2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need weekend dates between Start-Date and End-Date as&lt;/P&gt;&lt;P&gt;04-01-2019&lt;/P&gt;&lt;P&gt;11-01-2019&lt;/P&gt;&lt;P&gt;18-01-2019&lt;/P&gt;&lt;P&gt;25-01-2019&lt;/P&gt;&lt;P&gt;01-02-2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Colud you please Help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 07:06:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Weekends/m-p/534391#M33016</guid>
      <dc:creator>PavanKumar2</dc:creator>
      <dc:date>2019-02-11T07:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Weekends</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Weekends/m-p/534399#M33017</link>
      <description>&lt;P&gt;Try this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
 do i = '01jan2019'd to '01feb2019'd;
   if weekday(i) = 6 then put i yymmdd10.;
 end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 08:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Weekends/m-p/534399#M33017</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-02-11T08:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Weekends</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Weekends/m-p/534418#M33019</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/236018"&gt;@PavanKumar2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is about shifting week-end dates to the date of the previous Friday then below code should do.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sample;
 format calendar_date workingDate yymmdd10.;
 do calendar_date = '01jan2019'd to '01feb2019'd;
   workingDate=intnx('weekday',calendar_date,0,'b');
   output;
 end;
run;
proc print data=sample;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Feb 2019 10:50:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Weekends/m-p/534418#M33019</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-11T10:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Weekends</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Weekends/m-p/534434#M33022</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x;
do i=0 to intck('week','01jan2019'd, '01feb2019'd);
  date=intnx('week.7','01jan2019'd,i,'e');output;
end;
format date ddmmyy10.;
run;
proc print;run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Feb 2019 12:43:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Weekends/m-p/534434#M33022</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-02-11T12:43:33Z</dc:date>
    </item>
  </channel>
</rss>

