<?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 Re: Create new variable based on two date variables matching in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15192#M2633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;First save your excel file type as CSV (comma delimited) file type to you desktop(or other folder).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Second Run below; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: #eef4f9;"&gt;Data&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; datedata;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;Infile&lt;/SPAN&gt; &lt;SPAN style="background-color: #eef4f9; color: purple; font-size: 10pt;"&gt;'C:\Desktop\Date data.csv'&lt;/SPAN&gt; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;DLM&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: purple; font-size: 10pt;"&gt;','&lt;/SPAN&gt; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;FIRSTOBS&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: #eef4f9;"&gt;2&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;Input&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; Given_Date &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: teal; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; Sex $ Vaccine :$20. Entry_Date &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: teal; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match_Date = Given_Date - Entry_Date + &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: #eef4f9;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; Given_Date Entry_Date &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: teal; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: #eef4f9;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-family: courier new,courier; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-family: courier new,courier; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-family: courier new,courier; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Check;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-family: courier new,courier; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;TITLE&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: #eef4f9;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: #eef4f9;"&gt;print&lt;/STRONG&gt; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; = datedata &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;NOOBS&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: #eef4f9;"&gt;run&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TD style="padding: 0.75pt;"&gt;&lt;P align="right"&gt;&lt;STRONG&gt;Given_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0.75pt;"&gt;&lt;P&gt;&lt;STRONG&gt;Sex&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0.75pt;"&gt;&lt;P&gt;&lt;STRONG&gt;Vaccine&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0.75pt;"&gt;&lt;P align="right"&gt;&lt;STRONG&gt;Entry_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0.75pt;"&gt;&lt;P align="right"&gt;&lt;STRONG&gt;Match_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;M&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;DTaP&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;M&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;Hiberix&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;F&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;H1N1 Sanofi(6-35m)&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/02/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;M&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;H1N1 Nov 4y and up&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;M&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;DTaP-HepB-IPV&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2011 23:52:54 GMT</pubDate>
    <dc:creator>VX_Xc</dc:creator>
    <dc:date>2011-12-16T23:52:54Z</dc:date>
    <item>
      <title>Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15179#M2620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two dates: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Entry Date&lt;/P&gt;&lt;P&gt;Given Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a new variable, date_match = 1 when entry_date = given_date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been using the following code;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if entry_date = given_date then date_match = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the date_match variable comes up as missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing something incorrectly, but am not sure what. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any assistance you can provide. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************&lt;/P&gt;&lt;P&gt;I have attached some of the date data. There are records where the dates match and other where they do not. Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 20:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15179#M2620</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2011-12-14T20:42:14Z</dc:date>
    </item>
    <item>
      <title>Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15180#M2621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a number of reasons why the value would come up missing.&amp;nbsp; See if any of the following might apply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You misspelled on or both of the variable names&lt;/P&gt;&lt;P&gt;You don't have any records where they match&lt;/P&gt;&lt;P&gt;One of the variables is a SAS date and the other is a datetime&lt;/P&gt;&lt;P&gt;One or both variables are something other than SAS date variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does your log provide any clues?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, if you want to have zeros and ones as values, once you identify the source of your current problem, you can simplify the statement with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date_match=entry_date eq given_date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 22:36:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15180#M2621</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-14T22:36:48Z</dc:date>
    </item>
    <item>
      <title>Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15181#M2622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please make sure the two date&amp;nbsp; variables are not defined as character variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when entry_date not equal given_date , date_match will come up as missing;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 22:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15181#M2622</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2011-12-14T22:37:31Z</dc:date>
    </item>
    <item>
      <title>Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15182#M2623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be your data contains white space between two dates values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input entry_date ddmmyy10. &lt;EM&gt;&lt;STRONG&gt;+1&lt;/STRONG&gt; &lt;/EM&gt;given_date ddmmyy10.;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;01/10/2000 01/10/2000&lt;/P&gt;&lt;P&gt;01/11/2001 01/12/2003&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt; Make sure that your data not contains white space and if it contains space then make sure that you include space while reading data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;set test;&lt;/P&gt;&lt;P&gt;if entry_date = given_date then date_match = 1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try the above code , you'll get your output &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 22:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15182#M2623</guid>
      <dc:creator>UrvishShah</dc:creator>
      <dc:date>2011-12-14T22:46:23Z</dc:date>
    </item>
    <item>
      <title>Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15183#M2624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The log does not show any errors, which causes me to be puzzled as to why the code is not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both dates are in the "mmddyy10." format according to the proc contents. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used datdif to calculate the number of days difference between the two dates and was able to get the results I needed, though I still would like to be to create a variable that simply identifies if they are different. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it be helpful to change the formatting of the dates? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 13:40:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15183#M2624</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2011-12-15T13:40:17Z</dc:date>
    </item>
    <item>
      <title>Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15184#M2625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are both number variables in the mmddyy10. format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 13:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15184#M2625</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2011-12-15T13:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15185#M2626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide us a sample of the data you work with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 13:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15185#M2626</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2011-12-15T13:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15186#M2627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; have;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;informat&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp; entry_date given_date &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: teal; font-size: 10pt;"&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; entry_date given_date &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: teal; font-size: 10pt;"&gt;mmddyy10.&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; entry_date given_date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;date_match=entry_date eq given_date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 10pt;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;12/1/2011 12/20/2011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffc0; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;12/15/2011 12/15/2011&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;print&lt;/STRONG&gt; ;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 13:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15186#M2627</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2011-12-15T13:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15187#M2628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your dataset is small (less than a couple of hundred obs) then print it out and check if any dates actually match.&lt;/P&gt;&lt;P&gt;If it is large here is a trick to see if you can find examples of matches or non matches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title1 'Matches';&lt;/P&gt;&lt;P&gt;proc print data=have (obs=10) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where entry_date = given_date ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title1 'Non-Matches';&lt;/P&gt;&lt;P&gt;proc print data=have (obs=10) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where entry_date ne given_date ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;title1 ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 14:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15187#M2628</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-12-15T14:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15188#M2629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;date_match= (entry_date eq given_date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;I use this often. You will get a 0 for date_match when not equal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 22:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15188#M2629</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-12-15T22:52:23Z</dc:date>
    </item>
    <item>
      <title>Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15189#M2630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached some of the data. Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 15:40:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15189#M2630</guid>
      <dc:creator>HyunJee</dc:creator>
      <dc:date>2011-12-16T15:40:54Z</dc:date>
    </item>
    <item>
      <title>Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15190#M2631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see any attached data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 15:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15190#M2631</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-16T15:48:23Z</dc:date>
    </item>
    <item>
      <title>Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15191#M2632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just noticed the spreadsheet now attached to your original post. Entry_Date is a datetime variable, while Given_Date is a date variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your test to &lt;/P&gt;&lt;P&gt;date_match=datepart(entry_date) eq given_date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 15:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15191#M2632</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-16T15:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15192#M2633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;First save your excel file type as CSV (comma delimited) file type to you desktop(or other folder).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Second Run below; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: #eef4f9;"&gt;Data&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; datedata;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;Infile&lt;/SPAN&gt; &lt;SPAN style="background-color: #eef4f9; color: purple; font-size: 10pt;"&gt;'C:\Desktop\Date data.csv'&lt;/SPAN&gt; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;DLM&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: purple; font-size: 10pt;"&gt;','&lt;/SPAN&gt; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;FIRSTOBS&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: #eef4f9;"&gt;2&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;Input&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; Given_Date &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: teal; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; Sex $ Vaccine :$20. Entry_Date &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: teal; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match_Date = Given_Date - Entry_Date + &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: #eef4f9;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; Given_Date Entry_Date &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: teal; font-size: 10pt;"&gt;MMDDYY10.&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: #eef4f9;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-family: courier new,courier; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-family: courier new,courier; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-family: courier new,courier; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Check;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9; font-family: courier new,courier; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;TITLE&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: #eef4f9;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: #eef4f9;"&gt;print&lt;/STRONG&gt; &lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt; = datedata &lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: blue; font-size: 10pt;"&gt;NOOBS&lt;/SPAN&gt;&lt;SPAN style="background-color: #eef4f9; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: #eef4f9;"&gt;run&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TD style="padding: 0.75pt;"&gt;&lt;P align="right"&gt;&lt;STRONG&gt;Given_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0.75pt;"&gt;&lt;P&gt;&lt;STRONG&gt;Sex&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0.75pt;"&gt;&lt;P&gt;&lt;STRONG&gt;Vaccine&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0.75pt;"&gt;&lt;P align="right"&gt;&lt;STRONG&gt;Entry_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 0.75pt;"&gt;&lt;P align="right"&gt;&lt;STRONG&gt;Match_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;M&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;DTaP&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;M&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;Hiberix&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;F&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;H1N1 Sanofi(6-35m)&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/02/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;M&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;H1N1 Nov 4y and up&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;M&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P&gt;DTaP-HepB-IPV&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;12/01/2009&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="padding: 0.75pt;" valign="top"&gt;&lt;P align="right"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 23:52:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15192#M2633</guid>
      <dc:creator>VX_Xc</dc:creator>
      <dc:date>2011-12-16T23:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15193#M2634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may have missed my last post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just noticed the spreadsheet now attached to your original post. Entry_Date is a datetime variable, while Given_Date is a date variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change your test to&lt;/P&gt;&lt;P&gt;date_match=datepart(entry_date) eq given_date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 23:59:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15193#M2634</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-16T23:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15194#M2635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, when you convert it to CSV it does not care about the underlying format. But only cares about what it shows in the cell, i.e. what you see is what you get kinda thing. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Dec 2011 00:06:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15194#M2635</guid>
      <dc:creator>VX_Xc</dc:creator>
      <dc:date>2011-12-17T00:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15195#M2636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I had thought you were the original poster.&amp;nbsp; The problem is simply that the OP is trying to compare a date with a datetime.&amp;nbsp; Yes, losing that distinction by converting the file is always a possibility, but easier to solve by simply using the correct functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Dec 2011 00:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15195#M2636</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-17T00:19:38Z</dc:date>
    </item>
    <item>
      <title>Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15196#M2637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Yes you are right. Your way would actually be much better way as it would work for more general cases.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Dec 2011 00:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15196#M2637</guid>
      <dc:creator>VX_Xc</dc:creator>
      <dc:date>2011-12-17T00:24:14Z</dc:date>
    </item>
    <item>
      <title>Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15197#M2638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't access the link... It says I'm not allowed...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Dec 2011 00:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15197#M2638</guid>
      <dc:creator>VX_Xc</dc:creator>
      <dc:date>2011-12-17T00:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create new variable based on two date variables matching</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15198#M2639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The link wasn't intended and has since been removed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Dec 2011 00:31:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-new-variable-based-on-two-date-variables-matching/m-p/15198#M2639</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-12-17T00:31:09Z</dc:date>
    </item>
  </channel>
</rss>

