<?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 get table C in the easiest way? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-C-in-the-easiest-way/m-p/326400#M72675</link>
    <description>&lt;P&gt;Sort your data sets if they are not already in order:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=a; by num index; run;&lt;/P&gt;
&lt;P&gt;proc sort data=b; by num index; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, your data sets are already in order and don't need to be sorted. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then to find the mismatch:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data c;&lt;/P&gt;
&lt;P&gt;merge a (in=in_a) &amp;nbsp;b (in=in_b);&lt;/P&gt;
&lt;P&gt;by num index;&lt;/P&gt;
&lt;P&gt;if in_a=0;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the program doesn't actually need IN_A. &amp;nbsp;But your real requirements might be to find mismatches in either direction where you might use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if in_a=0 or in_b=0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2017 20:20:18 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-01-20T20:20:18Z</dc:date>
    <item>
      <title>How to get table C in the easiest way?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-C-in-the-easiest-way/m-p/326363#M72664</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A quick question, what is the easiest way to get table C where only two columns there, num=5 and index=a, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data A;&lt;BR /&gt;input num index $;&lt;BR /&gt;cards;&lt;BR /&gt;1 a&lt;BR /&gt;2 a&lt;BR /&gt;3 a&lt;BR /&gt;4 a&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data B;&lt;BR /&gt;input num index $;&lt;BR /&gt;cards;&lt;BR /&gt;1 a&lt;BR /&gt;2 a&lt;BR /&gt;3 a&lt;BR /&gt;4 a&lt;BR /&gt;5 a&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-C-in-the-easiest-way/m-p/326363#M72664</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2017-01-20T17:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table C in the easiest way?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-C-in-the-easiest-way/m-p/326368#M72666</link>
      <description>&lt;P&gt;What does C look like? What does it come from?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Easiest from your description might well be:&lt;/P&gt;
&lt;P&gt;data c;&lt;BR /&gt;input num index $;&lt;BR /&gt;cards;&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so I think you are missing some details of your issue.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 17:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-C-in-the-easiest-way/m-p/326368#M72666</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-20T17:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get table C in the easiest way?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-C-in-the-easiest-way/m-p/326400#M72675</link>
      <description>&lt;P&gt;Sort your data sets if they are not already in order:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=a; by num index; run;&lt;/P&gt;
&lt;P&gt;proc sort data=b; by num index; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, your data sets are already in order and don't need to be sorted. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then to find the mismatch:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data c;&lt;/P&gt;
&lt;P&gt;merge a (in=in_a) &amp;nbsp;b (in=in_b);&lt;/P&gt;
&lt;P&gt;by num index;&lt;/P&gt;
&lt;P&gt;if in_a=0;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, the program doesn't actually need IN_A. &amp;nbsp;But your real requirements might be to find mismatches in either direction where you might use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if in_a=0 or in_b=0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 20:20:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-table-C-in-the-easiest-way/m-p/326400#M72675</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-01-20T20:20:18Z</dc:date>
    </item>
  </channel>
</rss>

