<?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 How to change a coulmn of dates in character format into a momyy7. format? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566252#M11318</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to SAS and trying to learn my way around it. I have a data set with a column populated with dates in Character format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex: 092009 for September 2009, the properties of the column say its a Character variable with $30.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I change the whole column of dates into monyy7. format or to any other date format for that matter?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 18:01:04 GMT</pubDate>
    <dc:creator>kartheekm9</dc:creator>
    <dc:date>2019-06-14T18:01:04Z</dc:date>
    <item>
      <title>How to change a coulmn of dates in character format into a momyy7. format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566252#M11318</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to SAS and trying to learn my way around it. I have a data set with a column populated with dates in Character format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex: 092009 for September 2009, the properties of the column say its a Character variable with $30.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I change the whole column of dates into monyy7. format or to any other date format for that matter?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 18:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566252#M11318</guid>
      <dc:creator>kartheekm9</dc:creator>
      <dc:date>2019-06-14T18:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a coulmn of dates in character format into a momyy7. format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566254#M11319</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data want(rename=(new_date=date));
length new_date 8.;
set have;
new_date = date;
format new_date monyy.;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 18:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566254#M11319</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-06-14T18:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a coulmn of dates in character format into a momyy7. format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566256#M11321</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

/*********************/
/**	SAMPLE DATASET	**/
/*********************/
DATA WORK.Have;
FORMAT 		Date_Orig $30.; 
INFORMAT	Date_Orig $30.; 
INPUT  		Date_Orig; 
CARDS;      
092009
102009
112009
122009
;


DATA WORK.Want (RENAME=(date_new=Date_Orig));
	SET WORK.Have;
	FORMAT Date_New MONYY7.;
	Date_New=INPUT(Date_Orig,ANYDTDTE7.);
	DROP Date_Orig;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to change to a different date format instead of 'MONYY7.', just put whatever date format you prefer in place of 'MONYY7.'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 18:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566256#M11321</guid>
      <dc:creator>tsap</dc:creator>
      <dc:date>2019-06-14T18:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a coulmn of dates in character format into a momyy7. format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566258#M11322</link>
      <description>&lt;P&gt;Hi VDD,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the prompt reply. The solution you have provided is changing the character format into the required date format but not accurately.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ex: 092009 has been converted into NOV2211, and the others have gone way into the future in the same way..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 18:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566258#M11322</guid>
      <dc:creator>kartheekm9</dc:creator>
      <dc:date>2019-06-14T18:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a coulmn of dates in character format into a momyy7. format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566261#M11323</link>
      <description>&lt;P&gt;Thank you Tsap. It works!!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 18:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566261#M11323</guid>
      <dc:creator>kartheekm9</dc:creator>
      <dc:date>2019-06-14T18:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to change a coulmn of dates in character format into a momyy7. format?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566265#M11324</link>
      <description>&lt;P&gt;You're welcome.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 19:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-change-a-coulmn-of-dates-in-character-format-into-a/m-p/566265#M11324</guid>
      <dc:creator>tsap</dc:creator>
      <dc:date>2019-06-14T19:07:59Z</dc:date>
    </item>
  </channel>
</rss>

