<?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: compute is not working as expected , highlights identical data as mismatch in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/compute-is-not-working-as-expected-highlights-identical-data-as/m-p/492557#M31751</link>
    <description>&lt;P&gt;Its probably because your specifying&amp;nbsp;&lt;SPAN&gt;_col_ in the define.&amp;nbsp; Hard to say from snippets of code in shouting language.&amp;nbsp; As simpler method would be to create a format and use that, as described in:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings11/290-2011.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings11/290-2011.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You wouldn't need all the compute parts then.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2018 08:29:13 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-09-05T08:29:13Z</dc:date>
    <item>
      <title>compute is not working as expected , highlights identical data as mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/compute-is-not-working-as-expected-highlights-identical-data-as/m-p/492553#M31750</link>
      <description>&lt;P&gt;Hi Team,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to compare the same data in the string columns, if it's not equal then return &lt;STRONG&gt;F&lt;/STRONG&gt;, if it's equal then retun &lt;STRONG&gt;T using below code , even if the data in the columns are similar, including their lengths&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table TEstst as&lt;BR /&gt;select&amp;nbsp;&lt;BR /&gt;CODE_UNIT_old , CODE_UNIT,length(CODE_UNIT_old ),length(CODE_UNIT),&lt;BR /&gt;case when CODE_UNIT_old ne CODE_UNIT then 'T'&lt;BR /&gt;else 'F'&lt;BR /&gt;end as&amp;nbsp;result&lt;BR /&gt;from MISMATCH&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ans then am printing in a HTML , if the data is mimatch then highlight , &amp;nbsp;with below code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;COMPUTE CODE_UNIT_old;&lt;/P&gt;&lt;P&gt;IF ( strip(CODE_UNIT_old) ne strip(CODE_UNIT) ) then&lt;BR /&gt;call define (_col_,"style","style={background= orange}");&lt;BR /&gt;ENDCOMP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But &amp;nbsp;all rows are highlithed even if they have identical data .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CODE_UNIT_old CODE_UNIT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; length_0ld length_new result&lt;/STRONG&gt;&lt;BR /&gt;Fix 1,75% &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fix 1,75% &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; T&lt;BR /&gt;Fix 2,25% &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fix 2,25% &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;T&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can some one help this issue.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 07:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/compute-is-not-working-as-expected-highlights-identical-data-as/m-p/492553#M31750</guid>
      <dc:creator>radha1</dc:creator>
      <dc:date>2018-09-05T07:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: compute is not working as expected , highlights identical data as mismatch</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/compute-is-not-working-as-expected-highlights-identical-data-as/m-p/492557#M31751</link>
      <description>&lt;P&gt;Its probably because your specifying&amp;nbsp;&lt;SPAN&gt;_col_ in the define.&amp;nbsp; Hard to say from snippets of code in shouting language.&amp;nbsp; As simpler method would be to create a format and use that, as described in:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings11/290-2011.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings11/290-2011.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You wouldn't need all the compute parts then.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 08:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/compute-is-not-working-as-expected-highlights-identical-data-as/m-p/492557#M31751</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-05T08:29:13Z</dc:date>
    </item>
  </channel>
</rss>

