<?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 format Month and Year in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Date-format-Month-and-Year/m-p/234053#M5888</link>
    <description>Here it is Miller</description>
    <pubDate>Tue, 10 Nov 2015 16:22:51 GMT</pubDate>
    <dc:creator>mlogan</dc:creator>
    <dc:date>2015-11-10T16:22:51Z</dc:date>
    <item>
      <title>Date format Month and Year</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-format-Month-and-Year/m-p/234050#M5886</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;I wanted to extract the Month and Year from the date and soft them by &lt;SPAN&gt;MonthYear&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P&gt;After running the following code I see that MonthYear in sas dataset (want) is also $7. format. When I export the dataset to excel (os that I can do some manipulation in excel) I see that &lt;SPAN&gt;MonthYear is not in date format.&lt;/SPAN&gt;&amp;nbsp;Can someone please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;MonthYear=put(Date,monyy7.);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 16:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-format-Month-and-Year/m-p/234050#M5886</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2015-11-10T16:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date format Month and Year</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-format-Month-and-Year/m-p/234051#M5887</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;You haven't actually asked a question. It seems like your sample code would get you the month and year.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;What is the problem?&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now that you have added a paragraph to the original message, I withdraw my questions.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 18:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-format-Month-and-Year/m-p/234051#M5887</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-11-10T18:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Date format Month and Year</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-format-Month-and-Year/m-p/234053#M5888</link>
      <description>Here it is Miller</description>
      <pubDate>Tue, 10 Nov 2015 16:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-format-Month-and-Year/m-p/234053#M5888</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2015-11-10T16:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Date format Month and Year</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-format-Month-and-Year/m-p/234067#M5894</link>
      <description>PUT() converts the variable to a character format. Apply the format instead of converting it.&lt;BR /&gt;&lt;BR /&gt;Format MonthYear monyy7.;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2015 17:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-format-Month-and-Year/m-p/234067#M5894</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-10T17:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Date format Month and Year</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Date-format-Month-and-Year/m-p/234076#M5895</link>
      <description>&lt;P&gt;Why not make life easy and just create two variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;y = year(date);&lt;/P&gt;
&lt;P&gt;m = month(date);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They will pass to Excel easily, and can easily be sorted in any order you need.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 17:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Date-format-Month-and-Year/m-p/234076#M5895</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-11-10T17:41:36Z</dc:date>
    </item>
  </channel>
</rss>

