<?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: same date last month in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/same-date-last-month/m-p/452726#M114278</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/106991"&gt;@anirudhs&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for the code for the same date last month i.e&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg. 10APR2018&amp;nbsp; last month= 10MAR2018&lt;/P&gt;
&lt;P&gt;11APR2018 last month= 11MAR2018.&lt;/P&gt;
&lt;P&gt;similarly for next day.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;as i want to keep both the dates in single variable.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you don't have a date-variable anymore and working with the variable will be troublesome.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 07:45:53 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2018-04-10T07:45:53Z</dc:date>
    <item>
      <title>same date last month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/same-date-last-month/m-p/452720#M114276</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for the code for the same date last month i.e&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg. 10APR2018&amp;nbsp; last month= 10MAR2018&lt;/P&gt;&lt;P&gt;11APR2018 last month= 11MAR2018.&lt;/P&gt;&lt;P&gt;similarly for next day.&lt;/P&gt;&lt;P&gt;as i want to keep both the dates in single variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 06:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/same-date-last-month/m-p/452720#M114276</guid>
      <dc:creator>anirudhs</dc:creator>
      <dc:date>2018-04-10T06:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: same date last month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/same-date-last-month/m-p/452722#M114277</link>
      <description>&lt;P&gt;Use the INTNX function like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dates;
    date='10apr2018'd;
    datelastmonth=intnx('month', date, -1, 's');
    format date: date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Apr 2018 07:20:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/same-date-last-month/m-p/452722#M114277</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-04-10T07:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: same date last month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/same-date-last-month/m-p/452726#M114278</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/106991"&gt;@anirudhs&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for the code for the same date last month i.e&amp;nbsp;&lt;/P&gt;
&lt;P&gt;eg. 10APR2018&amp;nbsp; last month= 10MAR2018&lt;/P&gt;
&lt;P&gt;11APR2018 last month= 11MAR2018.&lt;/P&gt;
&lt;P&gt;similarly for next day.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;as i want to keep both the dates in single variable.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you don't have a date-variable anymore and working with the variable will be troublesome.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 07:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/same-date-last-month/m-p/452726#M114278</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-04-10T07:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: same date last month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/same-date-last-month/m-p/452732#M114280</link>
      <description>&lt;P&gt;This is not possible, you can either have:&lt;/P&gt;
&lt;P&gt;A numeric variable with a date&lt;/P&gt;
&lt;P&gt;A text variable with both dates converted to text and concatenated&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 08:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/same-date-last-month/m-p/452732#M114280</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-10T08:01:28Z</dc:date>
    </item>
  </channel>
</rss>

