<?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: How to find the mismatched variable where variables should all match in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-find-the-mismatched-variable-where-variables-should-all/m-p/598238#M16267</link>
    <description>&lt;P&gt;If you have 4 dates, with values&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15OCT2019, 15OCT2019,&amp;nbsp; 07OCT2019, and 07OCT2019, what is your rule for identifying which one(s) is/are different?&amp;nbsp;&amp;nbsp; Sure, if you have 3 identical and 1 non-identical, it's obvious,&amp;nbsp; but what if you have 2 pairs as per my question.&amp;nbsp; Or what if you have 4 distinct dates?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what are you desired rules of identification?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 19:45:43 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2019-10-21T19:45:43Z</dc:date>
    <item>
      <title>How to find the mismatched variable where variables should all match</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-find-the-mismatched-variable-where-variables-should-all/m-p/598217#M16265</link>
      <description>&lt;P&gt;I am creating a report for error checking data entry. I have multiple columns where the dates should all match&amp;nbsp; to reflect that each assessment was completed on the same day. I am trying to create a report that will highlight "Which of these things is not like the others".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently highlighting all of the visits where the dates do not match, but I would like to be able to highlight only the fields that are dissimilar to the others.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my current code in my proc report data step.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compute date4;&lt;BR /&gt;if date1 ne date2 or date2 ne date3 or date3 ne date4 then do;&lt;BR /&gt;call define("date1", 'style', 'style=[foreground=red font_weight=bold]');&lt;BR /&gt;call define("date2", 'style', 'style=[foreground=red font_weight=bold]');&lt;BR /&gt;call define("date3", 'style', 'style=[foreground=red font_weight=bold]');&lt;BR /&gt;call define("date4", 'style', 'style=[foreground=red font_weight=bold]');&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;endcomp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-find-the-mismatched-variable-where-variables-should-all/m-p/598217#M16265</guid>
      <dc:creator>tanya_henderson</dc:creator>
      <dc:date>2019-10-21T19:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the mismatched variable where variables should all match</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-find-the-mismatched-variable-where-variables-should-all/m-p/598238#M16267</link>
      <description>&lt;P&gt;If you have 4 dates, with values&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15OCT2019, 15OCT2019,&amp;nbsp; 07OCT2019, and 07OCT2019, what is your rule for identifying which one(s) is/are different?&amp;nbsp;&amp;nbsp; Sure, if you have 3 identical and 1 non-identical, it's obvious,&amp;nbsp; but what if you have 2 pairs as per my question.&amp;nbsp; Or what if you have 4 distinct dates?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what are you desired rules of identification?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-find-the-mismatched-variable-where-variables-should-all/m-p/598238#M16267</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2019-10-21T19:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the mismatched variable where variables should all match</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-find-the-mismatched-variable-where-variables-should-all/m-p/598242#M16268</link>
      <description>&lt;P&gt;I do have one column that is the preferred standard to compare to but sometimes that is the odd date. So, I guess I could compare all dates to date1 and highlight the differences unless all dates are the same and date1 is the odd date.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 19:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-find-the-mismatched-variable-where-variables-should-all/m-p/598242#M16268</guid>
      <dc:creator>tanya_henderson</dc:creator>
      <dc:date>2019-10-21T19:52:27Z</dc:date>
    </item>
  </channel>
</rss>

