<?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: Problem using MONTH() function in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/339796#M22561</link>
    <description>Worked fine! Thanks a lot for the help and for explaining about the date format!</description>
    <pubDate>Thu, 09 Mar 2017 21:27:46 GMT</pubDate>
    <dc:creator>PabloBrenner</dc:creator>
    <dc:date>2017-03-09T21:27:46Z</dc:date>
    <item>
      <title>Problem using MONTH() function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/339785#M22559</link>
      <description>&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a hard time trying to figure this out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column with date format, but when trying to user MONTH() oir YEAR() to extract information from it, the return is a blank cell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached a pic of the query result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pablo&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13541i0C53CB135F3EEA52/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SAS.JPG" title="SAS.JPG" /&gt;</description>
      <pubDate>Thu, 09 Mar 2017 21:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/339785#M22559</guid>
      <dc:creator>PabloBrenner</dc:creator>
      <dc:date>2017-03-09T21:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MONTH() function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/339788#M22560</link>
      <description>&lt;P&gt;That's a DATETIME field, not a DATE field.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use datepart() to convert to a date and then extract the month/year as desired.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;month(datepart(date_var))&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 21:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/339788#M22560</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-09T21:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MONTH() function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/339796#M22561</link>
      <description>Worked fine! Thanks a lot for the help and for explaining about the date format!</description>
      <pubDate>Thu, 09 Mar 2017 21:27:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/339796#M22561</guid>
      <dc:creator>PabloBrenner</dc:creator>
      <dc:date>2017-03-09T21:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MONTH() function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/339821#M22562</link>
      <description>&lt;P&gt;Please slap any of your developers or data designers for calling that a date if that is why you thought it was a date value. Slap them twice if they are forcing continuing the time value parts around if they are ALWAYS 00:00:00. There seems to be some sloppy stuff regarding dates and possibly Microsoft defaults that are becoming very common place.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 23:00:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/339821#M22562</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-09T23:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MONTH() function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/339972#M22563</link>
      <description>&lt;P&gt;I'm reading a table from an Oracle DB, at least when I read it in Oracle SQL Developer it is showing as a date field, but I will take some time to look into it, since we are thinking about automating some processes in SAS, this might turn out to be an issue upfront.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the comment!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 12:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/339972#M22563</guid>
      <dc:creator>PabloBrenner</dc:creator>
      <dc:date>2017-03-10T12:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using MONTH() function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/340028#M22564</link>
      <description>&lt;P&gt;If your reading from an Oracle DB it may not be the designers fault. &amp;nbsp;Oracle doesn't have a standard date only type. &amp;nbsp;Even the type called DATE has hours, minutes and seconds included whether you want them or not. &amp;nbsp;As a result when SAS pulls a DATE column from Oracle it treats it as a DATETIME, since that's really what it is.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 16:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Problem-using-MONTH-function/m-p/340028#M22564</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2017-03-10T16:30:53Z</dc:date>
    </item>
  </channel>
</rss>

