<?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 How to extract all Saturday's dates from one particular Month ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-all-Saturday-s-dates-from-one-particular-Month/m-p/448569#M112844</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Could you please suggest me I want extract all Saturday's dates &amp;nbsp;from one beginning date of the month till last date of the same month.&lt;/P&gt;&lt;P&gt;So that I can automate the SAS Job. Right Now manually we are passing values,but going forward it has to be automate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;If creating Macro variable&lt;/P&gt;&lt;P&gt;%let sub_table_date='01MAR2018'd&lt;/P&gt;&lt;P&gt;I need to extract all Saturdays date till 31 Mar 2018. (&lt;STRONG&gt;endpoint we have to automate&lt;/STRONG&gt;.)&lt;/P&gt;&lt;P&gt;so that we can extract &lt;STRONG&gt;03Mar, 10Mar,17Mar,24mar,31mar.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Purna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Mar 2018 08:03:00 GMT</pubDate>
    <dc:creator>Spintu</dc:creator>
    <dc:date>2018-03-26T08:03:00Z</dc:date>
    <item>
      <title>How to extract all Saturday's dates from one particular Month ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-all-Saturday-s-dates-from-one-particular-Month/m-p/448569#M112844</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;Could you please suggest me I want extract all Saturday's dates &amp;nbsp;from one beginning date of the month till last date of the same month.&lt;/P&gt;&lt;P&gt;So that I can automate the SAS Job. Right Now manually we are passing values,but going forward it has to be automate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;If creating Macro variable&lt;/P&gt;&lt;P&gt;%let sub_table_date='01MAR2018'd&lt;/P&gt;&lt;P&gt;I need to extract all Saturdays date till 31 Mar 2018. (&lt;STRONG&gt;endpoint we have to automate&lt;/STRONG&gt;.)&lt;/P&gt;&lt;P&gt;so that we can extract &lt;STRONG&gt;03Mar, 10Mar,17Mar,24mar,31mar.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Purna&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 08:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-all-Saturday-s-dates-from-one-particular-Month/m-p/448569#M112844</guid>
      <dc:creator>Spintu</dc:creator>
      <dc:date>2018-03-26T08:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract all Saturday's dates from one particular Month ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-all-Saturday-s-dates-from-one-particular-Month/m-p/448570#M112845</link>
      <description>&lt;P&gt;Do something like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	sub_table_date='01MAR2018'd;
	end_date=intnx('month', sub_table_date, 0, 'e');

	do date=sub_table_date to end_date;
		if weekday(date)=7 then output;
	end;

	format date date9.;
	keep date;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 08:09:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-all-Saturday-s-dates-from-one-particular-Month/m-p/448570#M112845</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-03-26T08:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract all Saturday's dates from one particular Month ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-all-Saturday-s-dates-from-one-particular-Month/m-p/448571#M112846</link>
      <description>Much appreciated your quick help.</description>
      <pubDate>Mon, 26 Mar 2018 08:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-all-Saturday-s-dates-from-one-particular-Month/m-p/448571#M112846</guid>
      <dc:creator>Spintu</dc:creator>
      <dc:date>2018-03-26T08:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract all Saturday's dates from one particular Month ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-all-Saturday-s-dates-from-one-particular-Month/m-p/448572#M112847</link>
      <description>&lt;P&gt;Anytime, glad to help.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 08:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-all-Saturday-s-dates-from-one-particular-Month/m-p/448572#M112847</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-03-26T08:23:14Z</dc:date>
    </item>
  </channel>
</rss>

