<?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: reading only last date of the month from the date variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/reading-only-last-date-of-the-month-from-the-date-variable/m-p/375711#M90109</link>
    <description>&lt;P&gt;Well, I don't know that database and its out o scope for this forum. &amp;nbsp;From a SAS standpoint you can filter the recieved data in a datastep after the sql, or you can go and investigate the database's functions and guidance and build a working SQL clause there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: logically the process is to group the data by month(date) and output when date=max(date) by month. &amp;nbsp;So first step would be to get month, maybe:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/4500390/netezza-sql-extract-month-issue" target="_blank"&gt;https://stackoverflow.com/questions/4500390/netezza-sql-extract-month-issue&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 14:49:22 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-07-13T14:49:22Z</dc:date>
    <item>
      <title>reading only last date of the month from the date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-only-last-date-of-the-month-from-the-date-variable/m-p/375705#M90105</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone assist me how I can read only the last day of the month data from my table .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sql to pull the data from netezza table to SAS Based on the period dates which has daily data But i need to pull only the data&lt;/P&gt;&lt;P&gt;of last day of each month. How can i accomlipsed that in the sql pass through?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Period date&lt;/P&gt;&lt;P&gt;01jul&lt;/P&gt;&lt;P&gt;02jul&lt;/P&gt;&lt;P&gt;30jul==&amp;gt; need this data&lt;/P&gt;&lt;P&gt;01aug&lt;/P&gt;&lt;P&gt;02aug&lt;/P&gt;&lt;P&gt;03aug&lt;/P&gt;&lt;P&gt;31aug ==&amp;gt; need this data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shuchi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-only-last-date-of-the-month-from-the-date-variable/m-p/375705#M90105</guid>
      <dc:creator>sdixit</dc:creator>
      <dc:date>2017-07-13T14:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: reading only last date of the month from the date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-only-last-date-of-the-month-from-the-date-variable/m-p/375711#M90109</link>
      <description>&lt;P&gt;Well, I don't know that database and its out o scope for this forum. &amp;nbsp;From a SAS standpoint you can filter the recieved data in a datastep after the sql, or you can go and investigate the database's functions and guidance and build a working SQL clause there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: logically the process is to group the data by month(date) and output when date=max(date) by month. &amp;nbsp;So first step would be to get month, maybe:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/4500390/netezza-sql-extract-month-issue" target="_blank"&gt;https://stackoverflow.com/questions/4500390/netezza-sql-extract-month-issue&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-only-last-date-of-the-month-from-the-date-variable/m-p/375711#M90109</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-13T14:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: reading only last date of the month from the date variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/reading-only-last-date-of-the-month-from-the-date-variable/m-p/375715#M90111</link>
      <description>&lt;P&gt;there is last_day function in neteezza, which you can derive last day and then in your where clause you can say where last day = your day&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/reading-only-last-date-of-the-month-from-the-date-variable/m-p/375715#M90111</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-07-13T14:54:19Z</dc:date>
    </item>
  </channel>
</rss>

