<?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: Get Complete Month list in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551701#M153312</link>
    <description>&lt;P&gt;Use data step logic like below and work from there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test(keep=date);
   firstday=intnx('month', today(), 0, 'b');
   lastday=intnx('month', today(), 0, 'e');

   do date=firstday to lastday;
      output;
   end;

   format date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 Apr 2019 13:16:33 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-04-17T13:16:33Z</dc:date>
    <item>
      <title>Get Complete Month list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551696#M153309</link>
      <description>&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need Complete Current month days list,whenever its running it should list only Current month Complete days.&lt;/P&gt;&lt;P&gt;i tried this code but i'm not getting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET DATE=%SYSFUNC(TODAY(),DATE9.);&lt;BR /&gt;%PUT &amp;amp;DATE;&lt;/P&gt;&lt;P&gt;%LET BugnMon = %SYSFUNC(INTNX(MONTH,%SYSFUNC(TODAY()),0,B),Date9.);&lt;BR /&gt;%PUT &amp;amp;BugnMon;&lt;BR /&gt;%LET EndMon = %SYSFUNC(INTNX(MONTH,%SYSFUNC(TODAY()),0,E),Date9.);&lt;BR /&gt;%PUT &amp;amp;EndMon;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OR&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET start_date=(intnx('month',today(),0,'B'),DATE9.);&lt;BR /&gt;%PUT &amp;amp;start_date;&lt;BR /&gt;%LET end_date=(intnx('month',today(),0,'E'),DATE9.);&lt;BR /&gt;%PUT &amp;amp;end_date;&lt;/P&gt;&lt;P&gt;%let start_date= &amp;amp;start_date;&lt;/P&gt;&lt;P&gt;%let end_date=&amp;amp;end_date;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like Current month is APR and Today is 17APR2019 .Output should list from&amp;nbsp;1APR2019 to 30APR2019&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can any one help on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 13:12:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551696#M153309</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-04-17T13:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Complete Month list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551699#M153311</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/90077"&gt;@sivastat08&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%LET start_date=(intnx('month',today(),0,'B'),DATE9.);&lt;BR /&gt;%PUT &amp;amp;start_date;&lt;BR /&gt;%LET end_date=(intnx('month',today(),0,'E'),DATE9.);&lt;BR /&gt;%PUT &amp;amp;end_date;&lt;/P&gt;
&lt;P&gt;%let start_date= &amp;amp;start_date;&lt;/P&gt;
&lt;P&gt;%let end_date=&amp;amp;end_date;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is very &lt;U&gt;neat&lt;/U&gt;. Are you looking to loop from start_date to end_date?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 13:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551699#M153311</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-04-17T13:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get Complete Month list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551701#M153312</link>
      <description>&lt;P&gt;Use data step logic like below and work from there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test(keep=date);
   firstday=intnx('month', today(), 0, 'b');
   lastday=intnx('month', today(), 0, 'e');

   do date=firstday to lastday;
      output;
   end;

   format date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Apr 2019 13:16:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551701#M153312</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-04-17T13:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get Complete Month list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551702#M153313</link>
      <description>Yes Sir,Output Should list Current month days</description>
      <pubDate>Wed, 17 Apr 2019 13:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551702#M153313</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-04-17T13:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get Complete Month list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551705#M153315</link>
      <description>&lt;P&gt;Do you want a list to be written to log or an output as a sas dataset?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 13:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551705#M153315</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-04-17T13:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get Complete Month list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551706#M153316</link>
      <description>OUTPUT SIR.</description>
      <pubDate>Wed, 17 Apr 2019 13:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551706#M153316</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-04-17T13:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get Complete Month list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551707#M153317</link>
      <description>Thanks For The Answer Sir</description>
      <pubDate>Wed, 17 Apr 2019 13:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551707#M153317</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-04-17T13:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get Complete Month list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551708#M153318</link>
      <description>&lt;P&gt;Ok Now I understand from the accepted solution that you basically wanted a &lt;STRONG&gt;dataset&lt;/STRONG&gt; output. I was confused whether you wanted an output as a list file or an output written to the log. Never mind, it's all good&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 13:22:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551708#M153318</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-04-17T13:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get Complete Month list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551709#M153319</link>
      <description>Thank you very much Sir</description>
      <pubDate>Wed, 17 Apr 2019 13:24:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Complete-Month-list/m-p/551709#M153319</guid>
      <dc:creator>sivastat08</dc:creator>
      <dc:date>2019-04-17T13:24:04Z</dc:date>
    </item>
  </channel>
</rss>

