<?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: Create an incremental date table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-an-incremental-date-table/m-p/697167#M213039</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/344580"&gt;@t34&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I need to create an incremental table in SAS. This table contains the first day of month and the final month day until today (every month needs to execute).It seems like this&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;First day month Final month day&lt;/STRONG&gt;&lt;BR /&gt;01/01/2019 31/01/2019&lt;BR /&gt;01/02/2019 28/02/2019&lt;BR /&gt;01/03/2019 31/03/2019&lt;BR /&gt;01/04/2019 30/04/2019&lt;BR /&gt;01/05/2019 31/05/2019&lt;BR /&gt;01/06/2019 30/06/2019&lt;BR /&gt;01/07/2019 31/07/2019&lt;BR /&gt;01/08/2019 31/08/2019&lt;BR /&gt;01/09/2019 30/09/2019&lt;BR /&gt;01/10/2019 31/10/2019&lt;BR /&gt;01/11/2019 30/11/2019&lt;BR /&gt;01/12/2019 31/12/2019&lt;BR /&gt;01/01/2020 31/01/2020&lt;BR /&gt;01/02/2020 29/02/2020&lt;BR /&gt;01/03/2020 31/03/2020&lt;BR /&gt;01/04/2020 30/04/2020&lt;BR /&gt;01/05/2020 31/05/2020&lt;BR /&gt;01/06/2020 30/06/2020&lt;BR /&gt;01/07/2020 31/07/2020&lt;BR /&gt;01/08/2020 31/08/2020&lt;BR /&gt;01/09/2020 30/09/2020&lt;BR /&gt;01/10/2020 31/10/2020&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Kind of missed a specified starting point. Possibly implied "from 01Jan2019" but really should state the starting value. SAS will work with dates back to the year 1518. So stating the start is somewhat important.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just for fun, how exactly do you intend to use the resulting intervals?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 15:11:16 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-11-06T15:11:16Z</dc:date>
    <item>
      <title>Create an incremental date table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-an-incremental-date-table/m-p/697135#M213029</link>
      <description>&lt;P&gt;I need to create an incremental table in SAS. This table contains the first day of month and the final month day until today (every month needs to execute).It seems like this&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;First day month Final month day&lt;/STRONG&gt;&lt;BR /&gt;01/01/2019 31/01/2019&lt;BR /&gt;01/02/2019 28/02/2019&lt;BR /&gt;01/03/2019 31/03/2019&lt;BR /&gt;01/04/2019 30/04/2019&lt;BR /&gt;01/05/2019 31/05/2019&lt;BR /&gt;01/06/2019 30/06/2019&lt;BR /&gt;01/07/2019 31/07/2019&lt;BR /&gt;01/08/2019 31/08/2019&lt;BR /&gt;01/09/2019 30/09/2019&lt;BR /&gt;01/10/2019 31/10/2019&lt;BR /&gt;01/11/2019 30/11/2019&lt;BR /&gt;01/12/2019 31/12/2019&lt;BR /&gt;01/01/2020 31/01/2020&lt;BR /&gt;01/02/2020 29/02/2020&lt;BR /&gt;01/03/2020 31/03/2020&lt;BR /&gt;01/04/2020 30/04/2020&lt;BR /&gt;01/05/2020 31/05/2020&lt;BR /&gt;01/06/2020 30/06/2020&lt;BR /&gt;01/07/2020 31/07/2020&lt;BR /&gt;01/08/2020 31/08/2020&lt;BR /&gt;01/09/2020 30/09/2020&lt;BR /&gt;01/10/2020 31/10/2020&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 13:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-an-incremental-date-table/m-p/697135#M213029</guid>
      <dc:creator>t34</dc:creator>
      <dc:date>2020-11-06T13:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create an incremental date table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-an-incremental-date-table/m-p/697142#M213033</link>
      <description>&lt;P&gt;You can use the INTNX function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    startmonth='01JAN2019'd;
    i=0;
	last_day_month=0;
    do until ( last_day_month&amp;gt;today());
        first_day_month=intnx('month',startmonth,i,'b');
        last_day_month=intnx('month',startmonth,i,'e');
        i=i+1;
		output;
    end;
    keep first_day_month last_day_month;
	format first_day_month last_day_month ddmmyys10.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Nov 2020 13:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-an-incremental-date-table/m-p/697142#M213033</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-06T13:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create an incremental date table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-an-incremental-date-table/m-p/697143#M213034</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   first = '01jan2019'd;
   do while (1);
      last = intnx('month', first, 0, 'e');
      if last &amp;gt; today() then leave;
      output;
      first = last + 1;
   end;
   format first last ddmmyy10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Nov 2020 13:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-an-incremental-date-table/m-p/697143#M213034</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-11-06T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Create an incremental date table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-an-incremental-date-table/m-p/697167#M213039</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/344580"&gt;@t34&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I need to create an incremental table in SAS. This table contains the first day of month and the final month day until today (every month needs to execute).It seems like this&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;STRONG&gt;First day month Final month day&lt;/STRONG&gt;&lt;BR /&gt;01/01/2019 31/01/2019&lt;BR /&gt;01/02/2019 28/02/2019&lt;BR /&gt;01/03/2019 31/03/2019&lt;BR /&gt;01/04/2019 30/04/2019&lt;BR /&gt;01/05/2019 31/05/2019&lt;BR /&gt;01/06/2019 30/06/2019&lt;BR /&gt;01/07/2019 31/07/2019&lt;BR /&gt;01/08/2019 31/08/2019&lt;BR /&gt;01/09/2019 30/09/2019&lt;BR /&gt;01/10/2019 31/10/2019&lt;BR /&gt;01/11/2019 30/11/2019&lt;BR /&gt;01/12/2019 31/12/2019&lt;BR /&gt;01/01/2020 31/01/2020&lt;BR /&gt;01/02/2020 29/02/2020&lt;BR /&gt;01/03/2020 31/03/2020&lt;BR /&gt;01/04/2020 30/04/2020&lt;BR /&gt;01/05/2020 31/05/2020&lt;BR /&gt;01/06/2020 30/06/2020&lt;BR /&gt;01/07/2020 31/07/2020&lt;BR /&gt;01/08/2020 31/08/2020&lt;BR /&gt;01/09/2020 30/09/2020&lt;BR /&gt;01/10/2020 31/10/2020&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Kind of missed a specified starting point. Possibly implied "from 01Jan2019" but really should state the starting value. SAS will work with dates back to the year 1518. So stating the start is somewhat important.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just for fun, how exactly do you intend to use the resulting intervals?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:11:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-an-incremental-date-table/m-p/697167#M213039</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-06T15:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create an incremental date table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-an-incremental-date-table/m-p/697265#M213070</link>
      <description>Thanks a lot, I just want to start from 01Jan2019</description>
      <pubDate>Fri, 06 Nov 2020 22:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-an-incremental-date-table/m-p/697265#M213070</guid>
      <dc:creator>t34</dc:creator>
      <dc:date>2020-11-06T22:46:59Z</dc:date>
    </item>
  </channel>
</rss>

