<?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: SAS DATE- Last Available Day of Each Month in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88248#M25169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just change the format from date9. to yymmddn8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Oct 2012 19:20:42 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-10-06T19:20:42Z</dc:date>
    <item>
      <title>SAS DATE- Last Available Day of Each Month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88245#M25166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to retrieve from my data the last day (not calender day) of each month. However the last day may not be the last day of the calender month, but the last day of the month given my data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. 20080601 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20080627&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20080622&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20080712&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20080729&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20100128&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20100125&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get a code to retrieve 20080627, 20080729 and 20109128. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 18:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88245#M25166</guid>
      <dc:creator>Benn</dc:creator>
      <dc:date>2012-10-06T18:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATE- Last Available Day of Each Month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88246#M25167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do it easily with proc sql:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table want as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select max(date) as last_day format date9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by year(date),month(date)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 18:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88246#M25167</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-06T18:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATE- Last Available Day of Each Month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88247#M25168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if the date can be left in the original format YYYYMMDD. Because the code results in "2008 JAN 01" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 19:15:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88247#M25168</guid>
      <dc:creator>Benn</dc:creator>
      <dc:date>2012-10-06T19:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATE- Last Available Day of Each Month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88248#M25169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just change the format from date9. to yymmddn8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 19:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88248#M25169</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-06T19:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATE- Last Available Day of Each Month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88249#M25170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Art,&lt;/P&gt;&lt;P&gt;yymmdd8. doesn't work for me. I changed it to yymmddn8. to get 20080828.&amp;nbsp; Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 19:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88249#M25170</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-06T19:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATE- Last Available Day of Each Month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88250#M25171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linlin: Then I will change mine as well.&amp;nbsp; As you can tell, it wasn't tested code.&amp;nbsp; Too busy listening to the Michigan State football game.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 19:37:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88250#M25171</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-06T19:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DATE- Last Available Day of Each Month</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88251#M25172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope they will win the game. I know you graduated there.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 19:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-DATE-Last-Available-Day-of-Each-Month/m-p/88251#M25172</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-06T19:42:59Z</dc:date>
    </item>
  </channel>
</rss>

