<?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: compare 2 set of array with each has 3 varibale in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/compare-2-set-of-array-with-each-has-3-varibale/m-p/254307#M48485</link>
    <description>&lt;P&gt;yeah my mistake i forgot to mention $ &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou Astounding ..you are awesome.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2016 19:46:45 GMT</pubDate>
    <dc:creator>Dd07</dc:creator>
    <dc:date>2016-03-03T19:46:45Z</dc:date>
    <item>
      <title>compare 2 set of array with each has 3 varibale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compare-2-set-of-array-with-each-has-3-varibale/m-p/254301#M48481</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest me and correct me why my flag(match1,match2 and match3) is showing as missing value.&lt;/P&gt;&lt;P&gt;i just need if the Freq_hist_201210 data matches Source_201210 then mark match1 as true else false&lt;/P&gt;&lt;P&gt;again if&amp;nbsp;&lt;SPAN&gt;Freq_hist_201211&amp;nbsp;data matches Source_201211 then mark match2 as false and so on.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my coding it is giving missing value:(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data val;&lt;BR /&gt;infile datalines;&lt;BR /&gt;input hist $16. Source $14.;&lt;BR /&gt;datalines;&lt;BR /&gt;Freq_hist_201210 &amp;nbsp;Source_201210&lt;BR /&gt;Freq_hist_201211 &amp;nbsp;Source_201211&lt;BR /&gt;Freq_hist_201212 Source_201212&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;Proc sql;&lt;BR /&gt;select hist into : a separated by ' ' from val;&lt;BR /&gt;select Source into : b separated by ' ' from val;quit;&lt;BR /&gt;%put &amp;amp;a. &amp;amp;b.;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Data validation;&lt;BR /&gt;set summary2;&lt;BR /&gt;Array aa(*) &amp;amp;a.;&lt;BR /&gt;Array bb(*) &amp;amp;b.;&lt;BR /&gt;Array match(3) ;&lt;BR /&gt;Do i=1 to dim(aa);&lt;BR /&gt;if aa(i)=bb(i) then match(i)="true";&lt;BR /&gt;else match(i)= "false";&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 19:26:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compare-2-set-of-array-with-each-has-3-varibale/m-p/254301#M48481</guid>
      <dc:creator>Dd07</dc:creator>
      <dc:date>2016-03-03T19:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 set of array with each has 3 varibale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compare-2-set-of-array-with-each-has-3-varibale/m-p/254302#M48482</link>
      <description>&lt;P&gt;Are these numerical variables? What does the log say, and what does your data look like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess - numerical precision mismatch - maybe need to round?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Verify your macro variables are resolving properly. Hard code it in, if necessary, and test it.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 19:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compare-2-set-of-array-with-each-has-3-varibale/m-p/254302#M48482</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-03T19:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 set of array with each has 3 varibale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compare-2-set-of-array-with-each-has-3-varibale/m-p/254303#M48483</link>
      <description>&lt;P&gt;thankyou Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;yes these are all numeric variable and also macros is resolving correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;taking as numerical precision mismatch then it should mark as "false" which either is not working. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 19:36:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compare-2-set-of-array-with-each-has-3-varibale/m-p/254303#M48483</guid>
      <dc:creator>Dd07</dc:creator>
      <dc:date>2016-03-03T19:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 set of array with each has 3 varibale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compare-2-set-of-array-with-each-has-3-varibale/m-p/254305#M48484</link>
      <description>&lt;P&gt;All the variables are numeric, including Match1, Match2, and Match3.&amp;nbsp; So they can't hold "true" or "false".&amp;nbsp; Try defining them as character instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;array match {3} $ 5;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And be sure to pay attention to the log when it talks about character to numeric conversion.&amp;nbsp; That can be a clue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 19:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compare-2-set-of-array-with-each-has-3-varibale/m-p/254305#M48484</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-03-03T19:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: compare 2 set of array with each has 3 varibale</title>
      <link>https://communities.sas.com/t5/SAS-Programming/compare-2-set-of-array-with-each-has-3-varibale/m-p/254307#M48485</link>
      <description>&lt;P&gt;yeah my mistake i forgot to mention $ &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou Astounding ..you are awesome.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 19:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/compare-2-set-of-array-with-each-has-3-varibale/m-p/254307#M48485</guid>
      <dc:creator>Dd07</dc:creator>
      <dc:date>2016-03-03T19:46:45Z</dc:date>
    </item>
  </channel>
</rss>

