<?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 HelloRe: How to concatenate date variables to create numeric date value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697037#M212990</link>
    <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using an assignment statement to concatenate the date variables into a singular numeric variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA WORK.Want;&lt;/P&gt;&lt;P&gt;SET&amp;nbsp; WORK.Have;&lt;/P&gt;&lt;P&gt;BirthDt = MDY(BirthMonth, BirthDay, BirthYear);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this was helpful!&amp;nbsp;&lt;/P&gt;&lt;P&gt;- A.G.&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 01:31:14 GMT</pubDate>
    <dc:creator>GoldingAngela</dc:creator>
    <dc:date>2020-11-06T01:31:14Z</dc:date>
    <item>
      <title>How to concatenate date variables to create numeric date value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697019#M212981</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to concatenate three date variables into a single numeric date value. The separate variables are day, month, and year. I am trying to concatenate the three variables into a single numeric date value and am struggling. I am wondering if I am using the wrong informat or if I am&amp;nbsp; nesting my functions inappropriately. Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATA	WORK.Want;&lt;BR /&gt;SET Work.Have;
BirthDt = INPUT(CAT(BirthMonth, BirthDay, BirthYear), ANYDTDTE9.);
	RUN;&lt;/PRE&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697019#M212981</guid>
      <dc:creator>strong_s</dc:creator>
      <dc:date>2020-11-05T22:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate date variables to create numeric date value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697020#M212982</link>
      <description>&lt;P&gt;You don't show what the values of Birthmonth etc look like.&lt;/P&gt;
&lt;P&gt;If they are numeric values then the better approach would be&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Birthdt = mdy(birthmonth, birthday, birthyear);&lt;/P&gt;
&lt;P&gt;format birthdt date9.;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697020#M212982</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-05T22:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate date variables to create numeric date value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697021#M212983</link>
      <description>&lt;P&gt;Sorry about that, the date variables are as follows:&lt;/P&gt;&lt;P&gt;BirthMonth: 12&lt;/P&gt;&lt;P&gt;BirthDay: 7&lt;/P&gt;&lt;P&gt;BirthYear: 1995&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697021#M212983</guid>
      <dc:creator>strong_s</dc:creator>
      <dc:date>2020-11-05T22:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate date variables to create numeric date value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697022#M212984</link>
      <description>This worked! Thank you so much!</description>
      <pubDate>Thu, 05 Nov 2020 22:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697022#M212984</guid>
      <dc:creator>strong_s</dc:creator>
      <dc:date>2020-11-05T22:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to concatenate date variables to create numeric date value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697027#M212987</link>
      <description>&lt;P&gt;If you will be working with dates much you may want to check out:&amp;nbsp; &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Working-with-Dates-and-Times-in-SAS-Tutorial/ta-p/424354&lt;/A&gt; has a PDF with much information about dates.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 22:51:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697027#M212987</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-05T22:51:15Z</dc:date>
    </item>
    <item>
      <title>HelloRe: How to concatenate date variables to create numeric date value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697037#M212990</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using an assignment statement to concatenate the date variables into a singular numeric variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA WORK.Want;&lt;/P&gt;&lt;P&gt;SET&amp;nbsp; WORK.Have;&lt;/P&gt;&lt;P&gt;BirthDt = MDY(BirthMonth, BirthDay, BirthYear);&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this was helpful!&amp;nbsp;&lt;/P&gt;&lt;P&gt;- A.G.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 01:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-concatenate-date-variables-to-create-numeric-date-value/m-p/697037#M212990</guid>
      <dc:creator>GoldingAngela</dc:creator>
      <dc:date>2020-11-06T01:31:14Z</dc:date>
    </item>
  </channel>
</rss>

