<?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: Date DDMMMYYYY in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-DDMMMYYYY/m-p/165825#M12759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since MDAY was declared character using: Input Mday $ 1-9; then attempting to re-create it as a date-valued numeric in the second line would fail. Either assign an informat before reading or create a new variable. The appropriate informat for data in your example is DATEw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; informat Mday date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input Mday 1-9;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format Mday mmddyy10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2014 20:12:07 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2014-02-06T20:12:07Z</dc:date>
    <item>
      <title>Date DDMMMYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-DDMMMYYYY/m-p/165824#M12758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello EG Users,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running into very standard issue of converting variables that represent into format that my code likes. In this snippet, I intend to create just one observation in TemporaryDays dataset that represents February 3 2014, however I need it to be in this format 03FEB2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.TemporaryDays;&lt;/P&gt;&lt;P&gt; input MDay $ 1-9;&lt;/P&gt;&lt;P&gt; MDay = input(MDay, DDMMMYY9.);&lt;/P&gt;&lt;P&gt; datalines;&lt;/P&gt;&lt;P&gt;03FEB2014&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;NOTE 485-185: Informat DDMMMYY was not found or could not be loaded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I go about making changes so that observation stored in TemporaryDays is of type date and not character; that matches what it would look like if I were doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MDay = '03FEB2014'd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Dhanashree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 19:58:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-DDMMMYYYY/m-p/165824#M12758</guid>
      <dc:creator>noobs</dc:creator>
      <dc:date>2014-02-06T19:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date DDMMMYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-DDMMMYYYY/m-p/165825#M12759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since MDAY was declared character using: Input Mday $ 1-9; then attempting to re-create it as a date-valued numeric in the second line would fail. Either assign an informat before reading or create a new variable. The appropriate informat for data in your example is DATEw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; informat Mday date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input Mday 1-9;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format Mday mmddyy10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 20:12:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-DDMMMYYYY/m-p/165825#M12759</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-02-06T20:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date DDMMMYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-DDMMMYYYY/m-p/165826#M12760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WEll , in that case why do I need&lt;/P&gt;&lt;P&gt;format MDay mmddyy10.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't that be same as DATE9.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, I tried it out and running into no errors but the dataset has observation with missing value in it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Invalid data for MDay in line 20 1-9.&lt;BR /&gt;RULE:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8---&lt;BR /&gt;20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03FEB2014&lt;/P&gt;&lt;P&gt;MDay=. _ERROR_=1 _N_=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 20:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-DDMMMYYYY/m-p/165826#M12760</guid>
      <dc:creator>noobs</dc:creator>
      <dc:date>2014-02-06T20:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Date DDMMMYYYY</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-DDMMMYYYY/m-p/165827#M12761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its ok, I see what you are saying now...&lt;/P&gt;&lt;P&gt;Thanks again ballardw &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 20:23:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Date-DDMMMYYYY/m-p/165827#M12761</guid>
      <dc:creator>noobs</dc:creator>
      <dc:date>2014-02-06T20:23:49Z</dc:date>
    </item>
  </channel>
</rss>

