<?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: Convert character/string to date9. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-character-string-to-date9/m-p/462121#M29796</link>
    <description>&lt;P&gt;Use the YYQ informat:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;numvar = input(charvar,yyq6.);
format numvar date9.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 14 May 2018 16:38:16 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-05-14T16:38:16Z</dc:date>
    <item>
      <title>Convert character/string to date9.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-character-string-to-date9/m-p/462116#M29795</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somehow my dates were input into my dataset wrong and I need to change them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the dates as a string right now and they are in yyq6. format but in characters. So the current dates show 2017Q1, 2017Q2, etc. but are char$6 as a string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is to see 01JAN2017 for the string 2017Q1, 01APR2017 for the string 2017Q2 and so on. But not just a string of that - it needs to be a proper date format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like I have tried everything and at best it will error out and at worst it will set all of values for that variable to missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do this??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!!&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 16:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-character-string-to-date9/m-p/462116#M29795</guid>
      <dc:creator>amylanza</dc:creator>
      <dc:date>2018-05-14T16:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert character/string to date9.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-character-string-to-date9/m-p/462121#M29796</link>
      <description>&lt;P&gt;Use the YYQ informat:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;numvar = input(charvar,yyq6.);
format numvar date9.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 May 2018 16:38:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Convert-character-string-to-date9/m-p/462121#M29796</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-14T16:38:16Z</dc:date>
    </item>
  </channel>
</rss>

