<?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: Comparison between two variable........ in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Comparison-between-two-variable/m-p/199204#M266641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, It's working Fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Apr 2015 17:58:33 GMT</pubDate>
    <dc:creator>Daya87</dc:creator>
    <dc:date>2015-04-19T17:58:33Z</dc:date>
    <item>
      <title>Comparison between two variable........</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Comparison-between-two-variable/m-p/199202#M266639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone, &lt;/P&gt;&lt;P&gt;&amp;nbsp; I have the Data in the below structure, I just want to check A variable numbers in B variable List. If the A variable Number not found in B variable I need that non matching record in output. &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="397"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="64"&gt;Sno&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="203"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="130"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1,2,3,4,5,6,7,8,9,10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1,2,3,4,5,6,7,8,9,10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1,2,3,4,5,6,7,8,9,10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1,2,3,4,5,6,7,8,9,10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;1,2&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1,2,3,4,5,6,7,8,9,10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;6&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;2,6&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1,2,3,4,5,6,7,8,9,10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;7&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;3,8&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1,2,3,4,5,6,7,8,9,10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;0,11&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1,2,3,4,5,6,7,8,9,10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl68" height="20" style="border-top: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;12,8,18&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;1,2,3,4,5,6,7,8,9,10&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;Note;- Both variables in Character.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Here i am supposed to get 8th and 9th Observation in output.Please help me on this.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2015 07:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Comparison-between-two-variable/m-p/199202#M266639</guid>
      <dc:creator>Daya87</dc:creator>
      <dc:date>2015-04-18T07:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison between two variable........</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Comparison-between-two-variable/m-p/199203#M266640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple datastep approach :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data have;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;length A B $32;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;input Sno A B;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1 1 1,2,3,4,5,6,7,8,9,10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2 2 1,2,3,4,5,6,7,8,9,10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3 4 1,2,3,4,5,6,7,8,9,10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4 5 1,2,3,4,5,6,7,8,9,10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;5 1,2 1,2,3,4,5,6,7,8,9,10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6 2,6 1,2,3,4,5,6,7,8,9,10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;7 3,8 1,2,3,4,5,6,7,8,9,10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;8 0,11 1,2,3,4,5,6,7,8,9,10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;9 12,8,18 1,2,3,4,5,6,7,8,9,10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data absent;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;length missNumber $12;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set have;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;do i = 1 to countw(A);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; missNumber = scan(A, i, ",");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if findw(B, missNumber, ",", "t") = 0 then do;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leave; &lt;SPAN style="color: #008000;"&gt;/* Remove this statement to get all missing numbers */&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;keep Sno missNumber;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc print data=absent noobs; run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2015 02:06:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Comparison-between-two-variable/m-p/199203#M266640</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-04-19T02:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison between two variable........</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Comparison-between-two-variable/m-p/199204#M266641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot, It's working Fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2015 17:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Comparison-between-two-variable/m-p/199204#M266641</guid>
      <dc:creator>Daya87</dc:creator>
      <dc:date>2015-04-19T17:58:33Z</dc:date>
    </item>
  </channel>
</rss>

