<?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: Inverse of the 'month' function in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152338#M11957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put(mdy(x,1,1960),monname3.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2014 15:38:43 GMT</pubDate>
    <dc:creator>DBailey</dc:creator>
    <dc:date>2014-05-09T15:38:43Z</dc:date>
    <item>
      <title>Inverse of the 'month' function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152337#M11956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way to assosciate numbers from 1 to 12 with the 12 months without having to down the long-winded road of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x = 1 then my_month = 'JAN';&lt;/P&gt;&lt;P&gt;else if x=2 then my_month = 'FEB';&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;else if x=12 then my_month = 'DEC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 15:33:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152337#M11956</guid>
      <dc:creator>Lupacante</dc:creator>
      <dc:date>2014-05-09T15:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse of the 'month' function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152338#M11957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put(mdy(x,1,1960),monname3.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 15:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152338#M11957</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-05-09T15:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse of the 'month' function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152339#M11958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_month = put(mdy(x,1,2013),monname3.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MDY takes a month number, day number, and year.&amp;nbsp; In your case, the day and year can be anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 15:41:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152339#M11958</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-05-09T15:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse of the 'month' function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152340#M11959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely.&lt;/P&gt;&lt;P&gt;One way of many is to code a proc format that contains the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example (untested):&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; value myname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 = "JAN"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 = "FEB"&lt;/P&gt;&lt;P&gt;etc....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; other = "err"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* in case you have a number greater than 12, missing or zero */&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;............................ &lt;/P&gt;&lt;P&gt;my_month&amp;nbsp; = put(x,myname.);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 15:41:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152340#M11959</guid>
      <dc:creator>jwillis</dc:creator>
      <dc:date>2014-05-09T15:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse of the 'month' function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152341#M11960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ooh, &lt;A __default_attr="246082" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; just beat me to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 15:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152341#M11960</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-05-09T15:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse of the 'month' function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152342#M11961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but why 1960?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 15:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152342#M11961</guid>
      <dc:creator>Lupacante</dc:creator>
      <dc:date>2014-05-09T15:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Inverse of the 'month' function</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152343#M11962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the year is actually irrelevant but that's the year for sas date = 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 16:10:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Inverse-of-the-month-function/m-p/152343#M11962</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-05-09T16:10:05Z</dc:date>
    </item>
  </channel>
</rss>

