<?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: hybrid format in the dataset, How to input into SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/hybrid-format-in-the-dataset-How-to-input-into-SAS/m-p/14200#M2209</link>
    <description>Hi Fred&lt;BR /&gt;
&lt;BR /&gt;
Use the informate ANYDTDTEw. as it digest different date strings and transforms them into as SAS date, i.e:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
infile datalines;&lt;BR /&gt;
input mydates:ANYDTDTE10.;&lt;BR /&gt;
format mydates date9.;&lt;BR /&gt;
put mydates=;&lt;BR /&gt;
datalines;&lt;BR /&gt;
25/06/2001&lt;BR /&gt;
20000312&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
    <pubDate>Tue, 10 Nov 2009 05:57:42 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2009-11-10T05:57:42Z</dc:date>
    <item>
      <title>hybrid format in the dataset, How to input into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/hybrid-format-in-the-dataset-How-to-input-into-SAS/m-p/14199#M2208</link>
      <description>I have the dataset with a column of DATE. However, my supervisor arranged the file from different sources. So the column of DATE in the excel file are not all in DATE formate. eg. &lt;BR /&gt;
&lt;BR /&gt;
There are both 25/06/2001, and 20000312 in that column, which the first is DATE format, but the second is recognized as numerical value. It's fairly easy to input just with either of them. But how to input both types of DATE presenting in the same column?  &lt;BR /&gt;
&lt;BR /&gt;
Thank you very much. &lt;BR /&gt;
&lt;BR /&gt;
Fred</description>
      <pubDate>Mon, 09 Nov 2009 21:58:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/hybrid-format-in-the-dataset-How-to-input-into-SAS/m-p/14199#M2208</guid>
      <dc:creator>Fred_Gavin</dc:creator>
      <dc:date>2009-11-09T21:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: hybrid format in the dataset, How to input into SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/hybrid-format-in-the-dataset-How-to-input-into-SAS/m-p/14200#M2209</link>
      <description>Hi Fred&lt;BR /&gt;
&lt;BR /&gt;
Use the informate ANYDTDTEw. as it digest different date strings and transforms them into as SAS date, i.e:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
infile datalines;&lt;BR /&gt;
input mydates:ANYDTDTE10.;&lt;BR /&gt;
format mydates date9.;&lt;BR /&gt;
put mydates=;&lt;BR /&gt;
datalines;&lt;BR /&gt;
25/06/2001&lt;BR /&gt;
20000312&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Tue, 10 Nov 2009 05:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/hybrid-format-in-the-dataset-How-to-input-into-SAS/m-p/14200#M2209</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-11-10T05:57:42Z</dc:date>
    </item>
  </channel>
</rss>

