<?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: how to convert date $8. to sas date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282287#M57347</link>
    <description>&lt;P&gt;Was there an error or note in your log?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2016 20:44:25 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-07-05T20:44:25Z</dc:date>
    <item>
      <title>how to convert date $8. to sas date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282181#M57316</link>
      <description>&lt;P&gt;the original dataset has date variables are listed as 20051001, 20160705&lt;/P&gt;&lt;P&gt;would you please recommend how to convert them to sas date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FORMAT date date9.;
date= input(date, yymmdd10.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282181#M57316</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-07-05T15:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert date $8. to sas date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282188#M57318</link>
      <description>&lt;P&gt;You can't change a variable type in place, you need to recreate a new variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FORMAT date_new date9.;
date_new= input(date, yymmdd10.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jul 2016 16:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282188#M57318</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-05T16:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert date $8. to sas date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282195#M57319</link>
      <description>&lt;P&gt;sorry, my previous message was not clear&lt;/P&gt;&lt;P&gt;i did the same way as you said,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with a new variable&lt;/P&gt;&lt;P&gt;but the new varabile has all missing values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the date format is yyyymmdd, like 20160705, i&amp;nbsp;do not know&amp;nbsp;how to convert&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 16:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282195#M57319</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-07-05T16:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert date $8. to sas date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282199#M57321</link>
      <description>&lt;P&gt;Use the yymmdd8. format in the input function.&lt;/P&gt;
&lt;P&gt;Also post the log of the data step.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 16:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282199#M57321</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-07-05T16:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert date $8. to sas date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282287#M57347</link>
      <description>&lt;P&gt;Was there an error or note in your log?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 20:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282287#M57347</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-05T20:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert date $8. to sas date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282289#M57348</link>
      <description>&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;there was no error&lt;/P&gt;&lt;P&gt;the problem disappeared when i ran my code again (eighter 8 or 10), so it&amp;nbsp;might &amp;nbsp;the sas or my computer problem?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 20:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282289#M57348</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-07-05T20:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert date $8. to sas date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282290#M57349</link>
      <description>&lt;P&gt;Possibly. It's more likely you had some other issue and running from the beginning fixed it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is especially true if your in the habit of naming your output the same at the dataset in your SET statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data want;
Set want;

...

Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jul 2016 20:50:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282290#M57349</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-05T20:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert date $8. to sas date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282292#M57350</link>
      <description>&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 20:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-date-8-to-sas-date/m-p/282292#M57350</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-07-05T20:53:57Z</dc:date>
    </item>
  </channel>
</rss>

