<?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: character to date variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228281#M16630</link>
    <description>&lt;P&gt;Yes Reeza that worked, thanks&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2015 20:13:23 GMT</pubDate>
    <dc:creator>woo</dc:creator>
    <dc:date>2015-10-02T20:13:23Z</dc:date>
    <item>
      <title>character to date variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228250#M16625</link>
      <description>&lt;P&gt;can i please get help on this,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;wants to convert below character value to&amp;nbsp;date value&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;char_var=2015.09.19&lt;/STRONG&gt; /*sorry but this is character value that i ended up by pulling it out from long string)*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;want&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;date_var=09192015&lt;/STRONG&gt; /*want it as a date*/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you in advance,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 18:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228250#M16625</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2015-10-02T18:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: character to date variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228253#M16626</link>
      <description>&lt;P&gt;date_Var=mdy(scan(char_var,2,'.')+0,scan(char_var,3,'.')+0,scan(char_var,1,'.')+0);&lt;/P&gt;&lt;P&gt;format date_Var mmddyy8.;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 18:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228253#M16626</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-10-02T18:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: character to date variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228255#M16627</link>
      <description>&lt;P&gt;While I can't test this at the moment, you should be able to read the character string directly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;date_var = input(char_var, yymmdd10.);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That will give you the proper date value. &amp;nbsp;For display purposes, choose the date format that you would like. &amp;nbsp;To match the result you originally asked for:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;format date_var mmddyyn8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 18:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228255#M16627</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-10-02T18:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: character to date variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228260#M16628</link>
      <description>&lt;P&gt;&lt;SPAN class="login-bold"&gt;to&amp;nbsp;&lt;A id="link_8" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954" target="_self"&gt;Astounding&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;i don't know why but i used that trick already and i am receiving error saying &lt;STRONG&gt;"limit set by errors= option reached,..."&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;&lt;STRONG&gt;Miller &lt;/STRONG&gt;trick worked though after using format function &lt;STRONG&gt;date9.;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 18:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228260#M16628</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2015-10-02T18:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: character to date variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228264#M16629</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;date_want=input(date_have, anydtdte10.);
format date_want date9.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This works for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 19:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228264#M16629</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-02T19:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: character to date variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228281#M16630</link>
      <description>&lt;P&gt;Yes Reeza that worked, thanks&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 20:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/character-to-date-variable/m-p/228281#M16630</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2015-10-02T20:13:23Z</dc:date>
    </item>
  </channel>
</rss>

