<?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: datapart function works half the time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260192#M50458</link>
    <description>&lt;P&gt;What database and which SAS/ACCESS product are you using?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2016 18:29:38 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2016-03-30T18:29:38Z</dc:date>
    <item>
      <title>datapart function works half the time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260150#M50448</link>
      <description>&lt;P&gt;I am having a problem with date conversion.&amp;nbsp; Sor some reason when I pull information from my datawarehouse using the datapart function in SQL the number ends up with a character format.&amp;nbsp; When I use the same procedure on a different table that has the date formatted the same way, the variable comes down as a numeric.&amp;nbsp; I checked the tables to make sure they are formatted the same way, and they are exactly the same.&amp;nbsp; In the meantime I just pulled the data&amp;nbsp;using SQL in step one, and formatted the data in a "data step" in step two and that works.&amp;nbsp; But I am wordering if this is a common problem.&amp;nbsp; I had been running this job for over 2 years and had no problems.&amp;nbsp; I have enclosed an attachment that details my results.&amp;nbsp; SAS enterprise guide 6.1 64-bit&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 16:27:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260150#M50448</guid>
      <dc:creator>pangea17</dc:creator>
      <dc:date>2016-03-30T16:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: datapart function works half the time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260154#M50449</link>
      <description>&lt;P&gt;This is a question for tech support.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 16:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260154#M50449</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-30T16:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: datapart function works half the time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260184#M50457</link>
      <description>&lt;P&gt;Could it be this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/47/918.html" target="_blank"&gt;http://support.sas.com/kb/47/918.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 18:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260184#M50457</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-03-30T18:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: datapart function works half the time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260192#M50458</link>
      <description>&lt;P&gt;What database and which SAS/ACCESS product are you using?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 18:29:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260192#M50458</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-03-30T18:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: datapart function works half the time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260535#M50570</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15692"&gt;@pangea17﻿&lt;/a&gt;&amp;nbsp;I see you "liked" my post. &amp;nbsp;Does that mean it help you solve the problem and if so could you show the code you changed or whatever you did. &amp;nbsp;It would help to know if/how you fixed it. &amp;nbsp;It may be useful to others.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 19:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260535#M50570</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-03-31T19:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: datapart function works half the time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260540#M50574</link>
      <description>&lt;P&gt;It didn't work as of yet, but my IT department is looking into the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 20:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260540#M50574</guid>
      <dc:creator>pangea17</dc:creator>
      <dc:date>2016-03-31T20:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: datapart function works half the time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260546#M50576</link>
      <description>&lt;P&gt;Did you try the option?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;A problem will result if later code treats that variable as a DATE rather than as a DATETIME. &lt;BR /&gt;The only workaround is to turn off implicit pass-through so that the function is not passed &lt;BR /&gt;to the DBMS and is instead processed by SAS. This can be done by setting the &lt;FONT color="#FF0000"&gt;DIRECT_EXE= LIBNAME&lt;/FONT&gt; option.&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Mar 2016 20:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/datapart-function-works-half-the-time/m-p/260546#M50576</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-03-31T20:26:01Z</dc:date>
    </item>
  </channel>
</rss>

