<?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 combine three columns to one date variable? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-combine-three-columns-to-one-date-variable/m-p/20854#M4352</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
In my data I have three variables - year, month and day that I want to combine into one date variable with the format ddmmyy8.&lt;BR /&gt;
&lt;BR /&gt;
How can I do that?&lt;BR /&gt;
&lt;BR /&gt;
Thanks - Bodil</description>
    <pubDate>Fri, 22 Oct 2010 05:40:28 GMT</pubDate>
    <dc:creator>Boni</dc:creator>
    <dc:date>2010-10-22T05:40:28Z</dc:date>
    <item>
      <title>How to combine three columns to one date variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-combine-three-columns-to-one-date-variable/m-p/20854#M4352</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
In my data I have three variables - year, month and day that I want to combine into one date variable with the format ddmmyy8.&lt;BR /&gt;
&lt;BR /&gt;
How can I do that?&lt;BR /&gt;
&lt;BR /&gt;
Thanks - Bodil</description>
      <pubDate>Fri, 22 Oct 2010 05:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-combine-three-columns-to-one-date-variable/m-p/20854#M4352</guid>
      <dc:creator>Boni</dc:creator>
      <dc:date>2010-10-22T05:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine three columns to one date variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-combine-three-columns-to-one-date-variable/m-p/20855#M4353</link>
      <description>use mdy function.&lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
     input month day year;&lt;BR /&gt;
     format new ddmmyy8.;&lt;BR /&gt;
             new=mdy(month,day,year);&lt;BR /&gt;
datalines;&lt;BR /&gt;
10 22 2010&lt;BR /&gt;
10 23 2010&lt;BR /&gt;
10 24 2010&lt;BR /&gt;
;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 22 Oct 2010 07:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-combine-three-columns-to-one-date-variable/m-p/20855#M4353</guid>
      <dc:creator>piggy</dc:creator>
      <dc:date>2010-10-22T07:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine three columns to one date variable?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-combine-three-columns-to-one-date-variable/m-p/20856#M4354</link>
      <description>I knew that a very easy solution was there somewhere... Thanks!</description>
      <pubDate>Fri, 22 Oct 2010 10:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-combine-three-columns-to-one-date-variable/m-p/20856#M4354</guid>
      <dc:creator>Boni</dc:creator>
      <dc:date>2010-10-22T10:14:49Z</dc:date>
    </item>
  </channel>
</rss>

