<?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: Simple Date Informat Question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Simple-Date-Informat-Question/m-p/254711#M48610</link>
    <description>&lt;P&gt;Further to the comments provided, the ANYDTDTEw informat is very useful when you may have different format layouts in the same column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The way in which SAS determines the layout ie/ Month Day Year or Day Month Year etc is based on your SAS system locale and datestyle options. It is mentioned in the paper &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt; references and I spoke about it at our local SAS user group meeting a while ago too - &lt;A href="http://www.sascommunity.org/mwiki/images/a/a6/2013-09-26-QUESTTipsAndTechniques-MichelleHomes.pdf" target="_blank"&gt;http://www.sascommunity.org/mwiki/images/a/a6/2013-09-26-QUESTTipsAndTechniques-MichelleHomes.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found that not many people know about this very useful informat as they may copy/paste existing code. It can be extremely useful for free-format date fields where the date layout can change in the source file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;</description>
    <pubDate>Sat, 05 Mar 2016 12:43:58 GMT</pubDate>
    <dc:creator>MichelleHomes</dc:creator>
    <dc:date>2016-03-05T12:43:58Z</dc:date>
    <item>
      <title>Simple Date Informat Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simple-Date-Informat-Question/m-p/254585#M48577</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm just started learning SAS, and got a simple question about date informat (don't know if it's too simple or too stupid).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Since &lt;SPAN&gt;ANYDTDTEw informat can read any date styles, why does SAS have so many other date informats, like mmddyy, ddmmyy,date, julian...)? is it nevessary to keep them? In my opinion, actually very few people like to use the simple way (ANYDTDTEw), is there any reason for this?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 20:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simple-Date-Informat-Question/m-p/254585#M48577</guid>
      <dc:creator>mich_ard</dc:creator>
      <dc:date>2016-03-04T20:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Date Informat Question about date informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simple-Date-Informat-Question/m-p/254597#M48582</link>
      <description>&lt;P&gt;When you use ANYDTDTE you're allowing SAS to guess for you what the date informat actually is, but if you know what it is, it's better to specify it. This way, any dates that are enterered incorrectly will return a missing value or error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, ANYDTDTE doesn't recognize all date informats.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And finally, ANYDTDTE was introduced in SAS 9, so it hasn't always existed and the other ones are required for backwards compatability.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a paper on it from a few years ago:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings11/117-2011.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings11/117-2011.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 20:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simple-Date-Informat-Question/m-p/254597#M48582</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-04T20:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Date Informat Question about date informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simple-Date-Informat-Question/m-p/254609#M48586</link>
      <description>&lt;P&gt;If the data is supposed to be in one format when received and does not match the specified format the resulting missing values help identify records with the problem for correction.&lt;/P&gt;
&lt;P&gt;Also with two digit years in some formats you don't want anydt guesing. If you have a value like 020104 that you know is supposed to be 4 Jan 2002 the anydt algorithm is going to get Feb 1 2004 or 2 Jan 2004 depending on locale settings. Not that I like data in that format but it occurs.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 20:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simple-Date-Informat-Question/m-p/254609#M48586</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-04T20:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Date Informat Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simple-Date-Informat-Question/m-p/254711#M48610</link>
      <description>&lt;P&gt;Further to the comments provided, the ANYDTDTEw informat is very useful when you may have different format layouts in the same column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The way in which SAS determines the layout ie/ Month Day Year or Day Month Year etc is based on your SAS system locale and datestyle options. It is mentioned in the paper &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt; references and I spoke about it at our local SAS user group meeting a while ago too - &lt;A href="http://www.sascommunity.org/mwiki/images/a/a6/2013-09-26-QUESTTipsAndTechniques-MichelleHomes.pdf" target="_blank"&gt;http://www.sascommunity.org/mwiki/images/a/a6/2013-09-26-QUESTTipsAndTechniques-MichelleHomes.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found that not many people know about this very useful informat as they may copy/paste existing code. It can be extremely useful for free-format date fields where the date layout can change in the source file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 12:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simple-Date-Informat-Question/m-p/254711#M48610</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2016-03-05T12:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Date Informat Question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Simple-Date-Informat-Question/m-p/257684#M49498</link>
      <description>&lt;P&gt;thanks, very helpful.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 19:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Simple-Date-Informat-Question/m-p/257684#M49498</guid>
      <dc:creator>mich_ard</dc:creator>
      <dc:date>2016-03-18T19:31:45Z</dc:date>
    </item>
  </channel>
</rss>

