<?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: Proc Compare output  with getting only : Base,compare, diff in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Compare-output-with-getting-only-Base-compare-diff/m-p/481712#M124659</link>
    <description>&lt;P&gt;I don't understand what you are talking about. You'll need to give more explanations if you want an answer.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jul 2018 22:56:24 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-07-26T22:56:24Z</dc:date>
    <item>
      <title>Proc Compare output  with getting only : Base,compare, diff</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Compare-output-with-getting-only-Base-compare-diff/m-p/481698#M124648</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I want only the compare proc out but with this format&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 180pt; border-spacing: 0px; box-sizing: inherit; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" border="0" width="240" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.75pt; box-sizing: inherit;"&gt;
&lt;TD width="80" height="21" class="xl63" style="height: 15.75pt; width: 60pt; box-sizing: inherit;"&gt;_TYPE_&lt;/TD&gt;
&lt;TD width="80" class="xl63" style="border-left: none; width: 60pt; box-sizing: inherit;"&gt;obs&lt;/TD&gt;
&lt;TD width="80" class="xl63" style="border-left: none; width: 60pt; box-sizing: inherit;"&gt;var&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.75pt; box-sizing: inherit;"&gt;
&lt;TD width="80" height="21" class="xl64" style="height: 15.75pt; border-top: none; width: 60pt; box-sizing: inherit;"&gt;BASE&lt;/TD&gt;
&lt;TD width="80" align="right" class="xl64" style="border-top: none; border-left: none; width: 60pt; box-sizing: inherit;"&gt;1&lt;/TD&gt;
&lt;TD width="80" align="right" class="xl64" style="border-top: none; border-left: none; width: 60pt; box-sizing: inherit;"&gt;12&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 30.0pt; box-sizing: inherit;"&gt;
&lt;TD width="80" height="40" class="xl64" style="height: 30.0pt; border-top: none; width: 60pt; box-sizing: inherit;"&gt;COMPARE&lt;/TD&gt;
&lt;TD width="80" align="right" class="xl64" style="border-top: none; border-left: none; width: 60pt; box-sizing: inherit;"&gt;1&lt;/TD&gt;
&lt;TD width="80" align="right" class="xl64" style="border-top: none; border-left: none; width: 60pt; box-sizing: inherit;"&gt;14&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.75pt; box-sizing: inherit;"&gt;
&lt;TD width="80" height="21" class="xl64" style="height: 15.75pt; border-top: none; width: 60pt; box-sizing: inherit;"&gt;DIF&lt;/TD&gt;
&lt;TD width="80" align="right" class="xl64" style="border-top: none; border-left: none; width: 60pt; box-sizing: inherit;"&gt;1&lt;/TD&gt;
&lt;TD width="80" align="right" class="xl64" style="border-top: none; border-left: none; width: 60pt; box-sizing: inherit;"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not want in the output&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 180pt;" border="0" width="240" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.75pt;"&gt;
&lt;TD width="80" height="21" class="xl65" style="height: 15.75pt; width: 60pt;"&gt;_TYPE_&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt;"&gt;obs&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt; box-sizing: inherit;"&gt;Z1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.75pt;"&gt;
&lt;TD width="80" height="21" class="xl66" style="height: 15.75pt; border-top: none; width: 60pt;"&gt;BASE&lt;/TD&gt;
&lt;TD width="80" align="right" class="xl66" style="border-top: none; border-left: none; width: 60pt;"&gt;1&lt;/TD&gt;
&lt;TD width="80" align="right" class="xl66" style="border-top: none; border-left: none; width: 60pt; box-sizing: inherit;"&gt;
&lt;P&gt;15&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 180pt; border-spacing: 0px; box-sizing: inherit; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;" border="0" width="240" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.75pt; box-sizing: inherit;"&gt;
&lt;TD width="80" height="21" class="xl65" style="height: 15.75pt; width: 60pt; box-sizing: inherit;"&gt;_TYPE_&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt; box-sizing: inherit;"&gt;obs&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt; box-sizing: inherit;"&gt;Z2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 30.0pt; box-sizing: inherit;"&gt;
&lt;TD width="80" height="40" class="xl66" style="height: 30.0pt; border-top: none; width: 60pt; box-sizing: inherit;"&gt;COMPARE&lt;/TD&gt;
&lt;TD width="80" align="right" class="xl66" style="border-top: none; border-left: none; width: 60pt; box-sizing: inherit;"&gt;1&lt;/TD&gt;
&lt;TD width="80" align="right" class="xl66" style="border-top: none; border-left: none; width: 60pt; box-sizing: inherit;"&gt;23&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 26 Jul 2018 22:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Compare-output-with-getting-only-Base-compare-diff/m-p/481698#M124648</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2018-07-26T22:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Compare output  with getting only : Base,compare, diff</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Compare-output-with-getting-only-Base-compare-diff/m-p/481712#M124659</link>
      <description>&lt;P&gt;I don't understand what you are talking about. You'll need to give more explanations if you want an answer.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 22:56:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Compare-output-with-getting-only-Base-compare-diff/m-p/481712#M124659</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-07-26T22:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Compare output  with getting only : Base,compare, diff</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Compare-output-with-getting-only-Base-compare-diff/m-p/481731#M124670</link>
      <description>&lt;P&gt;Proc compare has so many different comparison options that you should start by posting the code you are currently using so have a change of guessing what you may be getting at. Best would be to provide short data steps to create the two data sets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And did you sort the sets before comparison? That sometimes helps a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 23:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Compare-output-with-getting-only-Base-compare-diff/m-p/481731#M124670</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-26T23:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Compare output  with getting only : Base,compare, diff</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Compare-output-with-getting-only-Base-compare-diff/m-p/482045#M124796</link>
      <description>&lt;P&gt;Thank your for your answer&lt;/P&gt;
&lt;P&gt;As an exemple, we can start by these data sets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table : One&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 120pt;" border="0" width="160" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="80" height="20" class="xl63" style="height: 15.0pt; width: 60pt;"&gt;idn&lt;/TD&gt;
&lt;TD width="80" class="xl63" style="border-left: none; width: 60pt;"&gt;var&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl63" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl63" style="height: 15.0pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Table : Two&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 120pt;" border="0" width="160" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="80" height="20" class="xl65" style="height: 15.0pt; width: 60pt;"&gt;idn&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt;"&gt;var&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl65" style="height: 15.0pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" align="right" class="xl65" style="height: 15.0pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;
&lt;P&gt;7&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When, we use this code&lt;/P&gt;
&lt;P&gt;proc compare base=one comp=two;&lt;/P&gt;
&lt;P&gt;out=res outnoequal outbase outcomp;&lt;/P&gt;
&lt;P&gt;id idn;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;getting the output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 180pt;" border="0" width="240" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="80" height="20" class="xl65" style="height: 15.0pt; width: 60pt;"&gt;_TYPE_&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt;"&gt;obs&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt;"&gt;Var&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;base&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;compare&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;base&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;compare&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;7&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want this output&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 180pt;" border="0" width="240" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="80" height="20" class="xl65" style="height: 15.0pt; width: 60pt;"&gt;_TYPE_&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt;"&gt;obs&lt;/TD&gt;
&lt;TD width="80" class="xl65" style="border-left: none; width: 60pt;"&gt;Var&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;base&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" class="xl65" style="height: 15.0pt; border-top: none;"&gt;compare&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 20:40:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Compare-output-with-getting-only-Base-compare-diff/m-p/482045#M124796</guid>
      <dc:creator>LineMoon</dc:creator>
      <dc:date>2018-07-27T20:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Compare output  with getting only : Base,compare, diff</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Compare-output-with-getting-only-Base-compare-diff/m-p/482120#M124819</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc compare base=one comp=two
out=res outnoequal outbase outcomp;
id idn;
run;

data WANT; 
  set RES;
  by ID notsorted;
  if first.ID and last.ID then delete; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jul 2018 00:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Compare-output-with-getting-only-Base-compare-diff/m-p/482120#M124819</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-07-28T00:06:34Z</dc:date>
    </item>
  </channel>
</rss>

