<?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 How to read data values into SAS date values (informat) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-values-into-SAS-date-values-informat/m-p/50752#M10608</link>
    <description>Hello SAS-users.&lt;BR /&gt;
&lt;BR /&gt;
I have to read raw data (.csv) into SAS dataset.&lt;BR /&gt;
&lt;BR /&gt;
Some fields are date values in the form submitted below:&lt;BR /&gt;
&lt;BR /&gt;
Apr 17 2007 12:00AM,Apr 17 2011 12:00AM&lt;BR /&gt;
May 28 2007 12:00AM,May 28 2010 12:00AM&lt;BR /&gt;
&lt;BR /&gt;
I can not find an appropriate informat to read this data into SAS date values.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for any help.</description>
    <pubDate>Fri, 15 Apr 2011 08:44:45 GMT</pubDate>
    <dc:creator>Oleg_L</dc:creator>
    <dc:date>2011-04-15T08:44:45Z</dc:date>
    <item>
      <title>How to read data values into SAS date values (informat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-values-into-SAS-date-values-informat/m-p/50752#M10608</link>
      <description>Hello SAS-users.&lt;BR /&gt;
&lt;BR /&gt;
I have to read raw data (.csv) into SAS dataset.&lt;BR /&gt;
&lt;BR /&gt;
Some fields are date values in the form submitted below:&lt;BR /&gt;
&lt;BR /&gt;
Apr 17 2007 12:00AM,Apr 17 2011 12:00AM&lt;BR /&gt;
May 28 2007 12:00AM,May 28 2010 12:00AM&lt;BR /&gt;
&lt;BR /&gt;
I can not find an appropriate informat to read this data into SAS date values.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for any help.</description>
      <pubDate>Fri, 15 Apr 2011 08:44:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-values-into-SAS-date-values-informat/m-p/50752#M10608</guid>
      <dc:creator>Oleg_L</dc:creator>
      <dc:date>2011-04-15T08:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data values into SAS date values (informat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-values-into-SAS-date-values-informat/m-p/50753#M10609</link>
      <description>[pre]&lt;BR /&gt;
options datestyle=mdy;&lt;BR /&gt;
data temp;&lt;BR /&gt;
infile datalines truncover dlm=' ';&lt;BR /&gt;
input dt  anydtdtm24.;&lt;BR /&gt;
format dt dateampm24.;&lt;BR /&gt;
datalines;&lt;BR /&gt;
Apr 17 2007 12:00AM&lt;BR /&gt;
Apr 17 2011 12:00AM&lt;BR /&gt;
May 28 2007 12:00AM&lt;BR /&gt;
May 28 2010 12:00AM&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Fri, 15 Apr 2011 09:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-values-into-SAS-date-values-informat/m-p/50753#M10609</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-04-15T09:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data values into SAS date values (informat)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-values-into-SAS-date-values-informat/m-p/50754#M10610</link>
      <description>Thank you very much.&lt;BR /&gt;
It works.&lt;BR /&gt;
&lt;BR /&gt;
Oleg</description>
      <pubDate>Fri, 15 Apr 2011 10:04:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-read-data-values-into-SAS-date-values-informat/m-p/50754#M10610</guid>
      <dc:creator>Oleg_L</dc:creator>
      <dc:date>2011-04-15T10:04:49Z</dc:date>
    </item>
  </channel>
</rss>

