<?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: Defaulting the date to a date next month in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Defaulting-the-date-to-a-date-next-month/m-p/20731#M3270</link>
    <description>You can do the same in data step if that is more appropriate for your situation.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
13   %put NextMonth25 = %sysfunc(INTNX(Mon,"25%sysfunc(Today(),monyy5.)"d,1,S),date9.);&lt;BR /&gt;
NextMonth25 = 25JUN2010&lt;BR /&gt;
[/pre]</description>
    <pubDate>Thu, 13 May 2010 01:52:50 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2010-05-13T01:52:50Z</dc:date>
    <item>
      <title>Defaulting the date to a date next month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Defaulting-the-date-to-a-date-next-month/m-p/20729#M3268</link>
      <description>Hi All&lt;BR /&gt;
&lt;BR /&gt;
I need to create a new date based on todays today - so today is May, the new date should default to the 25th of June.  If we are in June, the new date should default to 25th July.&lt;BR /&gt;
&lt;BR /&gt;
I was thinking of using the :&lt;BR /&gt;
&lt;BR /&gt;
nextMon = INTNX( 'Mon', Month(Today()), 1, 'S' );&lt;BR /&gt;
&lt;BR /&gt;
to give me next month, but not sure how to create a value of 25Jun10 &lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.&lt;BR /&gt;
&lt;BR /&gt;
Shelton.</description>
      <pubDate>Wed, 12 May 2010 23:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Defaulting-the-date-to-a-date-next-month/m-p/20729#M3268</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-12T23:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the date to a date next month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Defaulting-the-date-to-a-date-next-month/m-p/20730#M3269</link>
      <description>You only want to specify TODAY() for 2nd argument to INTNX and use a suitable SAS DATE output format.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 13 May 2010 00:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Defaulting-the-date-to-a-date-next-month/m-p/20730#M3269</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-05-13T00:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the date to a date next month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Defaulting-the-date-to-a-date-next-month/m-p/20731#M3270</link>
      <description>You can do the same in data step if that is more appropriate for your situation.&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
13   %put NextMonth25 = %sysfunc(INTNX(Mon,"25%sysfunc(Today(),monyy5.)"d,1,S),date9.);&lt;BR /&gt;
NextMonth25 = 25JUN2010&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 13 May 2010 01:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Defaulting-the-date-to-a-date-next-month/m-p/20731#M3270</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2010-05-13T01:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Defaulting the date to a date next month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Defaulting-the-date-to-a-date-next-month/m-p/20732#M3271</link>
      <description>You were almost there with your code. &lt;BR /&gt;
The 25th day of the next month is the first day + 24 days:&lt;BR /&gt;
&lt;BR /&gt;
next_mon=intnx('month',today(),1) + 24;</description>
      <pubDate>Fri, 14 May 2010 16:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Defaulting-the-date-to-a-date-next-month/m-p/20732#M3271</guid>
      <dc:creator>barheat</dc:creator>
      <dc:date>2010-05-14T16:50:28Z</dc:date>
    </item>
  </channel>
</rss>

