<?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 Combine numbers in three columns to create a date column. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Combine-numbers-in-three-columns-to-create-a-date-column/m-p/890299#M351783</link>
    <description>&lt;P&gt;I have a data set that has three columns (one column mentions day of a month, 2nd column mentions month, and the 3rd column mentions year). I would like to combine the data in those three columns to create a date column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID $   StartMonth   StartDay   StartYear   ;
cards;
001 10 9 2022
002 4 3 2022
003 2 7 2022
004 7 17 2022
005 10 24 2022
006 11 14 2022
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 21 Aug 2023 20:58:41 GMT</pubDate>
    <dc:creator>Barkat</dc:creator>
    <dc:date>2023-08-21T20:58:41Z</dc:date>
    <item>
      <title>Combine numbers in three columns to create a date column.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-numbers-in-three-columns-to-create-a-date-column/m-p/890299#M351783</link>
      <description>&lt;P&gt;I have a data set that has three columns (one column mentions day of a month, 2nd column mentions month, and the 3rd column mentions year). I would like to combine the data in those three columns to create a date column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input ID $   StartMonth   StartDay   StartYear   ;
cards;
001 10 9 2022
002 4 3 2022
003 2 7 2022
004 7 17 2022
005 10 24 2022
006 11 14 2022
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Aug 2023 20:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-numbers-in-three-columns-to-create-a-date-column/m-p/890299#M351783</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2023-08-21T20:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Combine numbers in three columns to create a date column.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combine-numbers-in-three-columns-to-create-a-date-column/m-p/890301#M351785</link>
      <description>&lt;P&gt;The below solution by &lt;SPAN&gt;ballardw&lt;/SPAN&gt; worked&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want; set have;
   startdate = mdy(startmonth, startday,startyear);
   format startdate date10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Aug 2023 20:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combine-numbers-in-three-columns-to-create-a-date-column/m-p/890301#M351785</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2023-08-21T20:54:21Z</dc:date>
    </item>
  </channel>
</rss>

