<?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: Convert mid month date to month end date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Convert-mid-month-date-to-month-end-date/m-p/62393#M17744</link>
    <description>Have a look at using the INTNX function for this purpose.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Thu, 06 Aug 2009 20:26:23 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-08-06T20:26:23Z</dc:date>
    <item>
      <title>Convert mid month date to month end date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-mid-month-date-to-month-end-date/m-p/62392#M17743</link>
      <description>I'm reading in a text file that contains a date paid field that can be any day of the month -- I want to convert that date to the end of the month date: for example&lt;BR /&gt;
&lt;BR /&gt;
record 1, date paid 05/12/2009, mthend 05/31/2009&lt;BR /&gt;
record 2, date paid 05/19/2009, mthend 05/31/2009&lt;BR /&gt;
record 3, date paid 06/02/2009, mthend 06/30/2009&lt;BR /&gt;
&lt;BR /&gt;
what is the sas procedure code that would do this for me?  Thanks.</description>
      <pubDate>Thu, 06 Aug 2009 20:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-mid-month-date-to-month-end-date/m-p/62392#M17743</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-06T20:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Convert mid month date to month end date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-mid-month-date-to-month-end-date/m-p/62393#M17744</link>
      <description>Have a look at using the INTNX function for this purpose.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 06 Aug 2009 20:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-mid-month-date-to-month-end-date/m-p/62393#M17744</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-08-06T20:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Convert mid month date to month end date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-mid-month-date-to-month-end-date/m-p/62394#M17745</link>
      <description>INTNX would be the correct procedure for this.  This procedure can return beginning, middle and/or end of the chosen period. Sample syntax is:&lt;BR /&gt;
&lt;BR /&gt;
data temp;&lt;BR /&gt;
format bill_date date9.;&lt;BR /&gt;
 input bill_date mmddyy10.;&lt;BR /&gt;
datalines;&lt;BR /&gt;
05/12/2009&lt;BR /&gt;
05/19/2009&lt;BR /&gt;
06/02/2009&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
data temp2;&lt;BR /&gt;
 set temp;&lt;BR /&gt;
 format month_end date9.;&lt;BR /&gt;
&lt;BR /&gt;
 month_end = INTNX( 'month',bill_date,0,'END');&lt;BR /&gt;
&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 06 Aug 2009 22:26:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-mid-month-date-to-month-end-date/m-p/62394#M17745</guid>
      <dc:creator>rob_sas</dc:creator>
      <dc:date>2009-08-06T22:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convert mid month date to month end date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Convert-mid-month-date-to-month-end-date/m-p/62395#M17746</link>
      <description>Thanks for the hints.</description>
      <pubDate>Thu, 06 Aug 2009 22:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Convert-mid-month-date-to-month-end-date/m-p/62395#M17746</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-06T22:32:04Z</dc:date>
    </item>
  </channel>
</rss>

