<?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 Using Dates Functions find days in the month prior to current month in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-Dates-Functions-find-days-in-the-month-prior-to-current/m-p/32602#M6303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code worked Well. Thanks a lot and appreciate for your great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S Ravuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2012 06:17:55 GMT</pubDate>
    <dc:creator>sambasiva_ravuri_tcs_com</dc:creator>
    <dc:date>2012-03-16T06:17:55Z</dc:date>
    <item>
      <title>Using Dates Functions find days in the month prior to current month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Dates-Functions-find-days-in-the-month-prior-to-current/m-p/32598#M6299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to write a SAS program to get the current date and determine number of days in the month prior to current month.&lt;/P&gt;&lt;P&gt;Find difference in days, months, and years between. Is it possible using SAS ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S Ravuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 14:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Dates-Functions-find-days-in-the-month-prior-to-current/m-p/32598#M6299</guid>
      <dc:creator>sambasiva_ravuri_tcs_com</dc:creator>
      <dc:date>2012-03-15T14:00:01Z</dc:date>
    </item>
    <item>
      <title>Using Dates Functions find days in the month prior to current month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Dates-Functions-find-days-in-the-month-prior-to-current/m-p/32599#M6300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks a very similar question to one I answered earlier today.&amp;nbsp; Check out my reply and the link I included, they should give you some ideas on how to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/message/119624#119624"&gt;http://communities.sas.com/message/119624#119624&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 14:10:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Dates-Functions-find-days-in-the-month-prior-to-current/m-p/32599#M6300</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2012-03-15T14:10:55Z</dc:date>
    </item>
    <item>
      <title>Using Dates Functions find days in the month prior to current month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Dates-Functions-find-days-in-the-month-prior-to-current/m-p/32600#M6301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Keith for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am getting the values for difference in days, months, and years in between. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me how can we get the no.of days for prior month to the current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S Ravuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 14:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Dates-Functions-find-days-in-the-month-prior-to-current/m-p/32600#M6301</guid>
      <dc:creator>sambasiva_ravuri_tcs_com</dc:creator>
      <dc:date>2012-03-15T14:22:38Z</dc:date>
    </item>
    <item>
      <title>Using Dates Functions find days in the month prior to current month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Dates-Functions-find-days-in-the-month-prior-to-current/m-p/32601#M6302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use the INTNX function as below.&amp;nbsp; This will subtract the 1st of the previous month from the 1st of the current month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data num_days;&lt;/P&gt;&lt;P&gt;a=today();&lt;/P&gt;&lt;P&gt;prev_month=intnx('month',a,0)-intnx('month',a,-1);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 14:31:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Dates-Functions-find-days-in-the-month-prior-to-current/m-p/32601#M6302</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2012-03-15T14:31:42Z</dc:date>
    </item>
    <item>
      <title>Using Dates Functions find days in the month prior to current month</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Dates-Functions-find-days-in-the-month-prior-to-current/m-p/32602#M6303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code worked Well. Thanks a lot and appreciate for your great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S Ravuri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 06:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Dates-Functions-find-days-in-the-month-prior-to-current/m-p/32602#M6303</guid>
      <dc:creator>sambasiva_ravuri_tcs_com</dc:creator>
      <dc:date>2012-03-16T06:17:55Z</dc:date>
    </item>
  </channel>
</rss>

