<?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 Date Variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Create-Date-Variable/m-p/755904#M30041</link>
    <description>&lt;P&gt;Do you have strings looking like dates, or sas dates?&lt;/P&gt;
&lt;P&gt;Maybe something like (code is untested):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have end=startLoop;
  output;
  if startLoop then do;
   do until (date = '31Dec2026'd);
     date = intnx('month', date, 1, 'end');
    output;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 22 Jul 2021 10:37:53 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2021-07-22T10:37:53Z</dc:date>
    <item>
      <title>Create Date Variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-Date-Variable/m-p/755894#M30040</link>
      <description>&lt;P&gt;hi, i have the below dates in months. i want to insert some more dates after the last date (30/04/2021). I mean i want to add dates till 31/12/2026 but not sure how i can do it. Please note that i want the last day of each month. for example, 30/05/2021, 31/06/2021 etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea it would be appreciated ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="75"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="75"&gt;31/07/2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;31/08/2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;30/09/2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;31/10/2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;30/11/2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;31/12/2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;31/01/2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;28/02/2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;31/03/2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;30/04/2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 22 Jul 2021 10:23:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-Date-Variable/m-p/755894#M30040</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2021-07-22T10:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create Date Variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-Date-Variable/m-p/755904#M30041</link>
      <description>&lt;P&gt;Do you have strings looking like dates, or sas dates?&lt;/P&gt;
&lt;P&gt;Maybe something like (code is untested):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have end=startLoop;
  output;
  if startLoop then do;
   do until (date = '31Dec2026'd);
     date = intnx('month', date, 1, 'end');
    output;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Jul 2021 10:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-Date-Variable/m-p/755904#M30041</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-22T10:37:53Z</dc:date>
    </item>
  </channel>
</rss>

