<?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: Re-coding to dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Re-coding-to-dates/m-p/194057#M36488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the current value is actually month1 then the current variable is text. Do you want an actual SAS date valued variable (recommended) or a text string.&lt;/P&gt;&lt;P&gt;If month1 represents Jan 2012 then something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newdate = intnx('Month','01JAN2012'd,(input(substr(date,6),best2.) -1),'BEGINNING');&lt;/P&gt;&lt;P&gt;FORMAT newdate mmddyy10.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2015 15:08:27 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-05-27T15:08:27Z</dc:date>
    <item>
      <title>Re-coding to dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Re-coding-to-dates/m-p/194056#M36487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable &lt;EM&gt;date&lt;/EM&gt; with values month1-month38 and i want to recode them to 1/1/2012-1/1/2015. Is there an easy way to do this? Using array maybe?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 14:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Re-coding-to-dates/m-p/194056#M36487</guid>
      <dc:creator>mmyrto</dc:creator>
      <dc:date>2015-05-27T14:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re-coding to dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Re-coding-to-dates/m-p/194057#M36488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the current value is actually month1 then the current variable is text. Do you want an actual SAS date valued variable (recommended) or a text string.&lt;/P&gt;&lt;P&gt;If month1 represents Jan 2012 then something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;newdate = intnx('Month','01JAN2012'd,(input(substr(date,6),best2.) -1),'BEGINNING');&lt;/P&gt;&lt;P&gt;FORMAT newdate mmddyy10.;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 15:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Re-coding-to-dates/m-p/194057#M36488</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-05-27T15:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re-coding to dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Re-coding-to-dates/m-p/194058#M36489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks this is exactly what i was looking for!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 15:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Re-coding-to-dates/m-p/194058#M36489</guid>
      <dc:creator>mmyrto</dc:creator>
      <dc:date>2015-05-27T15:14:36Z</dc:date>
    </item>
  </channel>
</rss>

