<?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 Converting MMDDYYCC(character) to CCYYMMDD(numeric) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Converting-MMDDYYCC-character-to-CCYYMMDD-numeric/m-p/128178#M35040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have a date field that is defined as character(MMDDYYCC).&lt;/P&gt;&lt;P&gt;Example: 11301220(Novermber 30th, 2012)&lt;/P&gt;&lt;P&gt;Could anyone please help me to convert this to CCYYMMDD in Numeric value?&lt;/P&gt;&lt;P&gt;The result should look like this: 20121130.&lt;/P&gt;&lt;P&gt;The reason why I need this in Numeric value is to sort this data.&lt;/P&gt;&lt;P&gt;Thank you for your help in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2012 11:57:49 GMT</pubDate>
    <dc:creator>ilmare</dc:creator>
    <dc:date>2012-05-29T11:57:49Z</dc:date>
    <item>
      <title>Converting MMDDYYCC(character) to CCYYMMDD(numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-MMDDYYCC-character-to-CCYYMMDD-numeric/m-p/128178#M35040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have a date field that is defined as character(MMDDYYCC).&lt;/P&gt;&lt;P&gt;Example: 11301220(Novermber 30th, 2012)&lt;/P&gt;&lt;P&gt;Could anyone please help me to convert this to CCYYMMDD in Numeric value?&lt;/P&gt;&lt;P&gt;The result should look like this: 20121130.&lt;/P&gt;&lt;P&gt;The reason why I need this in Numeric value is to sort this data.&lt;/P&gt;&lt;P&gt;Thank you for your help in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 11:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-MMDDYYCC-character-to-CCYYMMDD-numeric/m-p/128178#M35040</guid>
      <dc:creator>ilmare</dc:creator>
      <dc:date>2012-05-29T11:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MMDDYYCC(character) to CCYYMMDD(numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-MMDDYYCC-character-to-CCYYMMDD-numeric/m-p/128179#M35041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input date$12.;&lt;/P&gt;&lt;P&gt;date1=input(cats(substr(date,1,4),substr(date,7,2),substr(date,5,2)),mmddyy10.);&lt;/P&gt;&lt;P&gt;format date1 yymmddn8.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;11301220&lt;/P&gt;&lt;P&gt;12011221&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;proc print;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 12:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-MMDDYYCC-character-to-CCYYMMDD-numeric/m-p/128179#M35041</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-05-29T12:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MMDDYYCC(character) to CCYYMMDD(numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-MMDDYYCC-character-to-CCYYMMDD-numeric/m-p/128180#M35042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Haikuo,&lt;/P&gt;&lt;P&gt;Thank you very much for the prompt response. I really appreciate it.&lt;/P&gt;&lt;P&gt;The thing is I'm completely new to SAS Enterprise Guide pr SAS and I was trying to use your code in the "Computed Columns" like this:&lt;/P&gt;&lt;P&gt;input(cats(substr(date,1,4),substr(date,7,2),substr(date,5,2)),mmddyy10.):&lt;/P&gt;&lt;P&gt;format date yymmddn8.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it gave me an error.&lt;/P&gt;&lt;P&gt;Would it be possible for you to tell me how I can do this in the Enterprise Guide screen?&lt;/P&gt;&lt;P&gt;Thank you very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 13:11:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-MMDDYYCC-character-to-CCYYMMDD-numeric/m-p/128180#M35042</guid>
      <dc:creator>ilmare</dc:creator>
      <dc:date>2012-05-29T13:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MMDDYYCC(character) to CCYYMMDD(numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-MMDDYYCC-character-to-CCYYMMDD-numeric/m-p/128181#M35043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry. I am among those old school SAS programmers who are NOT the targeting populations of EG. I have never used EG myself even I know it has been installed on my pc. I am sure someone on the forum with EG experience will surely come to rescue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a side note, if you have posted your question on EG board, I would probably have never responded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 13:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-MMDDYYCC-character-to-CCYYMMDD-numeric/m-p/128181#M35043</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-05-29T13:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Converting MMDDYYCC(character) to CCYYMMDD(numeric)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Converting-MMDDYYCC-character-to-CCYYMMDD-numeric/m-p/128182#M35044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai.kuo,&lt;/P&gt;&lt;P&gt;Thank you for the info.&lt;/P&gt;&lt;P&gt;I didn't realze that there is a separate forum for SEG.&lt;/P&gt;&lt;P&gt;I really appreciate your help!!&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 13:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Converting-MMDDYYCC-character-to-CCYYMMDD-numeric/m-p/128182#M35044</guid>
      <dc:creator>ilmare</dc:creator>
      <dc:date>2012-05-29T13:29:11Z</dc:date>
    </item>
  </channel>
</rss>

