<?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  Any record identifier in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-Any-record-identifier/m-p/33082#M6392</link>
    <description>Be sure to include the BY and/or the ID statements.  These values will also be added to your output observations.&lt;BR /&gt;
&lt;BR /&gt;
[pre]data diffclass;&lt;BR /&gt;
set sashelp.class;&lt;BR /&gt;
if _n_= 1 then age=age+1;&lt;BR /&gt;
if _n_= 2 then delete;&lt;BR /&gt;
if _n_= 3 then weight = weight*2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc compare data=sashelp.class&lt;BR /&gt;
              compare=diffclass&lt;BR /&gt;
               out=cmprdat&lt;BR /&gt;
               outbase outcomp &lt;BR /&gt;
               noprint outnoequal;&lt;BR /&gt;
   id name;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print data=cmprdat;&lt;BR /&gt;
run;[/pre]</description>
    <pubDate>Fri, 12 Nov 2010 18:53:07 GMT</pubDate>
    <dc:creator>ArtC</dc:creator>
    <dc:date>2010-11-12T18:53:07Z</dc:date>
    <item>
      <title>Proc compare  Any record identifier</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-Any-record-identifier/m-p/33081#M6391</link>
      <description>Hi&lt;BR /&gt;
Is there any comparision record identifier which can be seen in the output result set of proc compare &lt;BR /&gt;
Basically comapre output will be like this&lt;BR /&gt;
&lt;BR /&gt;
base&lt;BR /&gt;
compare&lt;BR /&gt;
dif&lt;BR /&gt;
base&lt;BR /&gt;
compare&lt;BR /&gt;
dif&lt;BR /&gt;
I want to have a record identifier for this comparision that will uniquely tell this is the nth comparision.&lt;BR /&gt;
                   comparision number&lt;BR /&gt;
base             1&lt;BR /&gt;
compare        1&lt;BR /&gt;
dif                 1&lt;BR /&gt;
base            2&lt;BR /&gt;
compare        2&lt;BR /&gt;
dif                 2&lt;BR /&gt;
base             3&lt;BR /&gt;
base            4&lt;BR /&gt;
compare       4&lt;BR /&gt;
dif                4&lt;BR /&gt;
&lt;BR /&gt;
Is this possible please let me know.</description>
      <pubDate>Fri, 12 Nov 2010 16:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-Any-record-identifier/m-p/33081#M6391</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2010-11-12T16:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare  Any record identifier</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-Any-record-identifier/m-p/33082#M6392</link>
      <description>Be sure to include the BY and/or the ID statements.  These values will also be added to your output observations.&lt;BR /&gt;
&lt;BR /&gt;
[pre]data diffclass;&lt;BR /&gt;
set sashelp.class;&lt;BR /&gt;
if _n_= 1 then age=age+1;&lt;BR /&gt;
if _n_= 2 then delete;&lt;BR /&gt;
if _n_= 3 then weight = weight*2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc compare data=sashelp.class&lt;BR /&gt;
              compare=diffclass&lt;BR /&gt;
               out=cmprdat&lt;BR /&gt;
               outbase outcomp &lt;BR /&gt;
               noprint outnoequal;&lt;BR /&gt;
   id name;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc print data=cmprdat;&lt;BR /&gt;
run;[/pre]</description>
      <pubDate>Fri, 12 Nov 2010 18:53:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-Any-record-identifier/m-p/33082#M6392</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-11-12T18:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare  Any record identifier</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-Any-record-identifier/m-p/33083#M6393</link>
      <description>No this gives the observation number of base and compare dataset. &lt;BR /&gt;
This is not the comparision record number.</description>
      <pubDate>Fri, 12 Nov 2010 19:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-Any-record-identifier/m-p/33083#M6393</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2010-11-12T19:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare  Any record identifier</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-Any-record-identifier/m-p/33084#M6394</link>
      <description>I am sorry, but I do not understand what you are asking for.  What is the comparison record number?</description>
      <pubDate>Fri, 12 Nov 2010 19:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-Any-record-identifier/m-p/33084#M6394</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-11-12T19:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare  Any record identifier</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-Any-record-identifier/m-p/33085#M6395</link>
      <description>Question is not clear! could you elaborate on the same. thanks</description>
      <pubDate>Sun, 14 Nov 2010 07:28:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-Any-record-identifier/m-p/33085#M6395</guid>
      <dc:creator>sivaji</dc:creator>
      <dc:date>2010-11-14T07:28:57Z</dc:date>
    </item>
  </channel>
</rss>

