<?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 field in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76229#M16464</link>
    <description>The date format is not consistent across the observations.&lt;BR /&gt;
the first few rows has 09/18/2009 format and after which some rows will have &lt;BR /&gt;
Sep-09 format.&lt;BR /&gt;
How to make the date field consistent like mmddyy10. format?</description>
    <pubDate>Tue, 20 Oct 2009 18:41:24 GMT</pubDate>
    <dc:creator>SASPhile</dc:creator>
    <dc:date>2009-10-20T18:41:24Z</dc:date>
    <item>
      <title>date field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76229#M16464</link>
      <description>The date format is not consistent across the observations.&lt;BR /&gt;
the first few rows has 09/18/2009 format and after which some rows will have &lt;BR /&gt;
Sep-09 format.&lt;BR /&gt;
How to make the date field consistent like mmddyy10. format?</description>
      <pubDate>Tue, 20 Oct 2009 18:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76229#M16464</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-10-20T18:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: date field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76230#M16465</link>
      <description>Is this a SASDATE variable or text.  It must be text for this to happen.  Give us some information on what type of data you have.</description>
      <pubDate>Tue, 20 Oct 2009 18:45:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76230#M16465</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-10-20T18:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: date field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76231#M16466</link>
      <description>text.&lt;BR /&gt;
This is how i get my date field:&lt;BR /&gt;
&lt;BR /&gt;
SHIP_DATE&lt;BR /&gt;
09/22/2009&lt;BR /&gt;
09/18/2009&lt;BR /&gt;
09/22/2009&lt;BR /&gt;
09/18/2009&lt;BR /&gt;
Sep-09&lt;BR /&gt;
Sep-09</description>
      <pubDate>Tue, 20 Oct 2009 18:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76231#M16466</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-10-20T18:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: date field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76232#M16467</link>
      <description>This will do it.&lt;BR /&gt;
------------------------------------&lt;BR /&gt;
data test;&lt;BR /&gt;
  format SHIP_DATE mmddyy10.;&lt;BR /&gt;
  input SHIP_DATE : anydtDTE10.;&lt;BR /&gt;
cards;&lt;BR /&gt;
09/22/2009&lt;BR /&gt;
09/18/2009&lt;BR /&gt;
09/22/2009&lt;BR /&gt;
09/18/2009&lt;BR /&gt;
Sep-09&lt;BR /&gt;
Sep-09&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
--------------------</description>
      <pubDate>Tue, 20 Oct 2009 18:52:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76232#M16467</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2009-10-20T18:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: date field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76233#M16468</link>
      <description>input dateinfo anydtdte21.;</description>
      <pubDate>Tue, 20 Oct 2009 18:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76233#M16468</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-10-20T18:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: date field</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76234#M16469</link>
      <description>If you are still working on translating those Excel spreadsheets, this is probably more what you are looking for.&lt;BR /&gt;
------------------------------&lt;BR /&gt;
data test;&lt;BR /&gt;
length SHIP_DATE $10;&lt;BR /&gt;
input SHIP_DATE;&lt;BR /&gt;
cards;&lt;BR /&gt;
09/22/2009&lt;BR /&gt;
09/18/2009&lt;BR /&gt;
09/22/2009&lt;BR /&gt;
09/18/2009&lt;BR /&gt;
Sep-09&lt;BR /&gt;
Sep-09&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
data test2;&lt;BR /&gt;
  set test;&lt;BR /&gt;
  format SHIP_DATE_DT mmddyy10.;&lt;BR /&gt;
  SHIP_DATE_DT = input(SHIP_DATE,anydtDTE10.);&lt;BR /&gt;
run;&lt;BR /&gt;
-----------------------------</description>
      <pubDate>Tue, 20 Oct 2009 18:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-field/m-p/76234#M16469</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2009-10-20T18:56:33Z</dc:date>
    </item>
  </channel>
</rss>

