<?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: Getting the month name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-the-month-name/m-p/953259#M372465</link>
    <description>&lt;P&gt;Good to know.&amp;nbsp; And NLDATENM does not have MONNAME's nasty habit of right aligning the text.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data months;
  do mofy=1 to 12;
    date=mdy(mofy,1,2024);
    month=put(date,monname.);
    month2=put(date,nldatemn.);
    output;
  end;
  format date yymmdd10.;
run;

proc print ;
 format _character_ $quote.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Obs    mofy          date       month       month2

  1      1     2024-01-01    "  January"    "January"
  2      2     2024-02-01    " February"    "February"
  3      3     2024-03-01    "    March"    "March"
  4      4     2024-04-01    "    April"    "April"
  5      5     2024-05-01    "      May"    "May"
  6      6     2024-06-01    "     June"    "June"
  7      7     2024-07-01    "     July"    "July"
  8      8     2024-08-01    "   August"    "August"
  9      9     2024-09-01    "September"    "September"
 10     10     2024-10-01    "  October"    "October"
 11     11     2024-11-01    " November"    "November"
 12     12     2024-12-01    " December"    "December"

&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Dec 2024 17:10:43 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-12-11T17:10:43Z</dc:date>
    <item>
      <title>Getting the month name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-the-month-name/m-p/953228#M372456</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm getting the month name applying the function &lt;EM&gt;monname&lt;/EM&gt; :&amp;nbsp; put(datepart(mon_jour),monname.) .&lt;/P&gt;
&lt;P&gt;Do you know, please, how to display the month in French ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help !&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 13:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-the-month-name/m-p/953228#M372456</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2024-12-11T13:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the month name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-the-month-name/m-p/953229#M372457</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options LOCALE=fr_FR;&lt;BR /&gt;
data _null_;
mon_jour=datetime();
x = put(datepart(mon_jour),NLDATEMN.);
put x=;
run;&lt;BR /&gt;
options LOCALE=en_US;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Dec 2024 13:30:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-the-month-name/m-p/953229#M372457</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-12-11T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the month name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-the-month-name/m-p/953230#M372458</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options locale=fr_FR;
data fake;
   today=today();
   want=put(today,NLDATEMN.) ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Dec 2024 13:32:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-the-month-name/m-p/953230#M372458</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-12-11T13:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the month name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-the-month-name/m-p/953245#M372461</link>
      <description>Thank you, Yabwon!</description>
      <pubDate>Wed, 11 Dec 2024 15:35:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-the-month-name/m-p/953245#M372461</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2024-12-11T15:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the month name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-the-month-name/m-p/953259#M372465</link>
      <description>&lt;P&gt;Good to know.&amp;nbsp; And NLDATENM does not have MONNAME's nasty habit of right aligning the text.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data months;
  do mofy=1 to 12;
    date=mdy(mofy,1,2024);
    month=put(date,monname.);
    month2=put(date,nldatemn.);
    output;
  end;
  format date yymmdd10.;
run;

proc print ;
 format _character_ $quote.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Obs    mofy          date       month       month2

  1      1     2024-01-01    "  January"    "January"
  2      2     2024-02-01    " February"    "February"
  3      3     2024-03-01    "    March"    "March"
  4      4     2024-04-01    "    April"    "April"
  5      5     2024-05-01    "      May"    "May"
  6      6     2024-06-01    "     June"    "June"
  7      7     2024-07-01    "     July"    "July"
  8      8     2024-08-01    "   August"    "August"
  9      9     2024-09-01    "September"    "September"
 10     10     2024-10-01    "  October"    "October"
 11     11     2024-11-01    " November"    "November"
 12     12     2024-12-01    " December"    "December"

&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Dec 2024 17:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-the-month-name/m-p/953259#M372465</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-12-11T17:10:43Z</dc:date>
    </item>
  </channel>
</rss>

