<?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 Informat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-Informat/m-p/768261#M243662</link>
    <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What informat should i use to read the following data values as numeric variables form a csv?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"Sun, 22 Feb 2004"&lt;BR /&gt;input date:?????&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Andreas&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Sep 2021 11:34:29 GMT</pubDate>
    <dc:creator>andreas4</dc:creator>
    <dc:date>2021-09-17T11:34:29Z</dc:date>
    <item>
      <title>Date Informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Informat/m-p/768261#M243662</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What informat should i use to read the following data values as numeric variables form a csv?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"Sun, 22 Feb 2004"&lt;BR /&gt;input date:?????&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Andreas&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Sep 2021 11:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Informat/m-p/768261#M243662</guid>
      <dc:creator>andreas4</dc:creator>
      <dc:date>2021-09-17T11:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date Informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Informat/m-p/768264#M243663</link>
      <description>&lt;P&gt;First, remove the day of the week from the text string. Compress the blanks, and then the date9 informat should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
    y='22 Feb 2004';
    x=input(compress(y),date9.);
    format x date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Sep 2021 11:49:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Informat/m-p/768264#M243663</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-17T11:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Date Informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-Informat/m-p/768384#M243726</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/361734"&gt;@andreas4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What informat should i use to read the following data values as numeric variables form a csv?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;"Sun, 22 Feb 2004"&lt;BR /&gt;input date:?????&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Andreas&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If that is the way the data is in the CSV you likely will need to read the value as character then so something like:&lt;/P&gt;
&lt;PRE&gt;data example;
  x="Sun, 22 Feb 2004";
  y= input(scan(x,2,','),anydtdte16.);
  format y date9.;
run;&lt;/PRE&gt;
&lt;P&gt;to create a date value.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 21:23:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-Informat/m-p/768384#M243726</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-17T21:23:37Z</dc:date>
    </item>
  </channel>
</rss>

