<?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: Numeric Month (like 1, 2, 3- - -12) to full name month (like Jan, Feb, Mar - - -Dec) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790665#M32513</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/335985"&gt;@Barkat&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I should have mentioned that, I wanted the Month_name as date not as character.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A date identifies a specific &lt;STRONG&gt;day&lt;/STRONG&gt; within a specific month within a specific &lt;STRONG&gt;year&lt;/STRONG&gt;, so you need to define day and year first before you go on. For your purposes, it will be OK to assume day as 1, but year(s) is/are needed.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 11:22:38 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-01-18T11:22:38Z</dc:date>
    <item>
      <title>Numeric Month (like 1, 2, 3- - -12) to full name month (like Jan, Feb, Mar - - -Dec)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790596#M32501</link>
      <description>&lt;P&gt;In my dataset, in which the data of a variable, Num_Month has been entered as 1, 2, 3,- - - 12. I would like to convert them as Jan, Feb, Mar. - - - Dec.&lt;/P&gt;
&lt;P&gt;I tried&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want; set have;&lt;BR /&gt;format Month Monname3.;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is not working. Please help&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 21:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790596#M32501</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2022-01-17T21:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric Month (like 1, 2, 3- - -12) to full name month (like Jan, Feb, Mar - - -Dec)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790598#M32502</link>
      <description>&lt;P&gt;SAS Date formats require SAS Date values. SAS Date values are the count of days since 1/1/1960 stored in a numerical variable. SAS Date formats then make such counts human readable as dates (without changing the value).&lt;/P&gt;
&lt;P&gt;The mdy() function allows you to create such a SAS date value. The put() function used with a date format will then allow us to write this SAS Date value formatted as a string to a new variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data demo; 
  num_month=5;
  month_name=put(mdy(num_month,1,1960),monname3.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1642456282410.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67476iFD944432815BCD8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1642456282410.png" alt="Patrick_0-1642456282410.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 07:08:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790598#M32502</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-01-19T07:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric Month (like 1, 2, 3- - -12) to full name month (like Jan, Feb, Mar - - -Dec)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790600#M32504</link>
      <description>I should have mentioned that, I wanted the Month_name as date not as character.</description>
      <pubDate>Mon, 17 Jan 2022 22:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790600#M32504</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2022-01-17T22:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric Month (like 1, 2, 3- - -12) to full name month (like Jan, Feb, Mar - - -Dec)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790601#M32505</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  month_name = '18Jan2022'd;&lt;BR /&gt;  month_name2 = mdy(1,1,2022);
  format month_name month_name2 monname. ;
  put month_name = month_name2 =;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jan 2022 22:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790601#M32505</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-01-17T22:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric Month (like 1, 2, 3- - -12) to full name month (like Jan, Feb, Mar - - -Dec)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790602#M32506</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/335985"&gt;@Barkat&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I should have mentioned that, I wanted the Month_name as date not as character.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You may need to clarify your expectations then. This is where providing clear sample input data and expected output helps YOU.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data demo; 
  num_month=5;
  month_name=mdy(num_month,1,1960);
format month_name monname.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jan 2022 22:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790602#M32506</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-17T22:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric Month (like 1, 2, 3- - -12) to full name month (like Jan, Feb, Mar - - -Dec)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790604#M32507</link>
      <description>&lt;P&gt;If you want to convert a number between 1 and 12 into a DATE you need a YEAR and DAY value.&amp;nbsp; &amp;nbsp;You might be able to default to the first day of the month but where are you going to get the year?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 00:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790604#M32507</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-18T00:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric Month (like 1, 2, 3- - -12) to full name month (like Jan, Feb, Mar - - -Dec)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790665#M32513</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/335985"&gt;@Barkat&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I should have mentioned that, I wanted the Month_name as date not as character.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;A date identifies a specific &lt;STRONG&gt;day&lt;/STRONG&gt; within a specific month within a specific &lt;STRONG&gt;year&lt;/STRONG&gt;, so you need to define day and year first before you go on. For your purposes, it will be OK to assume day as 1, but year(s) is/are needed.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 11:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Numeric-Month-like-1-2-3-12-to-full-name-month-like-Jan-Feb-Mar/m-p/790665#M32513</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-01-18T11:22:38Z</dc:date>
    </item>
  </channel>
</rss>

