<?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 Date Problems in SAS 9.3 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-Problems-in-SAS-9-3/m-p/54780#M11616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are testing our code in SAS 9.3 and I have run across something odd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We read a date and time field from an external pipe-delimited file using ANYDTDTM and the behaviour has changed since version 9.1. with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attrib&amp;nbsp; OpenDT&amp;nbsp;&amp;nbsp;&amp;nbsp; length=8.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format=datetime18.&amp;nbsp; informat=anydtdtm17.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 9.1 - using ANYDTDTM17.&amp;nbsp; and reading "02/04/09 08:48:11"&amp;nbsp; returns 04FEB09 08:48:11,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in 9.3 - you get 02APR09 08:48:11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the 9.1 version reads the date part of the data as MM/DD/YY and the 9.3 version reads it as DD/MM/YY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is there an alternative date-time format that I can use to read my data (without significant program changes)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Can I modify the behaviour of the ANYDTDTM in any wat to tell it how to read the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Am I just going to have to read the field in as TEST and parse it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Should I just ignore it and hope it changes back in the next version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2012 17:12:10 GMT</pubDate>
    <dc:creator>OS2Rules</dc:creator>
    <dc:date>2012-04-03T17:12:10Z</dc:date>
    <item>
      <title>Date Problems in SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Problems-in-SAS-9-3/m-p/54780#M11616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are testing our code in SAS 9.3 and I have run across something odd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We read a date and time field from an external pipe-delimited file using ANYDTDTM and the behaviour has changed since version 9.1. with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; attrib&amp;nbsp; OpenDT&amp;nbsp;&amp;nbsp;&amp;nbsp; length=8.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format=datetime18.&amp;nbsp; informat=anydtdtm17.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 9.1 - using ANYDTDTM17.&amp;nbsp; and reading "02/04/09 08:48:11"&amp;nbsp; returns 04FEB09 08:48:11,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in 9.3 - you get 02APR09 08:48:11&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the 9.1 version reads the date part of the data as MM/DD/YY and the 9.3 version reads it as DD/MM/YY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Is there an alternative date-time format that I can use to read my data (without significant program changes)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Can I modify the behaviour of the ANYDTDTM in any wat to tell it how to read the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Am I just going to have to read the field in as TEST and parse it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Should I just ignore it and hope it changes back in the next version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 17:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Problems-in-SAS-9-3/m-p/54780#M11616</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2012-04-03T17:12:10Z</dc:date>
    </item>
    <item>
      <title>Date Problems in SAS 9.3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Problems-in-SAS-9-3/m-p/54781#M11617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Here I go answering my own question -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS (in their infinite wisdom) added an option to control the format of the date when used this way as of version 9.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPTION DATESTYLE=MDY;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;refer to: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.sas.com/kb/35/412.html"&gt;http://support.sas.com/kb/35/412.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 17:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Problems-in-SAS-9-3/m-p/54781#M11617</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2012-04-03T17:29:56Z</dc:date>
    </item>
  </channel>
</rss>

