<?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 : creating table only for different values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-creating-table-only-for-different-values/m-p/567839#M75151</link>
    <description>&lt;P&gt;"&lt;SPAN&gt;comparing table_1 and table_2 only for variable B and D". What does this mean? What observations would output_table contain?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2019 05:59:34 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-06-21T05:59:34Z</dc:date>
    <item>
      <title>Proc compare : creating table only for different values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-creating-table-only-for-different-values/m-p/567825#M75149</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Proc compare and want to create a table which has all the diff values only for column&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg: we have a&lt;/P&gt;&lt;P&gt;table_1 with columns: A,B,C,D,E&lt;/P&gt;&lt;P&gt;table_2 with columns : A,B,C,D,E&lt;/P&gt;&lt;P&gt;output_table should have A,B,C,D,E (comparing table_1 and table_2 only for variable B and D)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kajal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 04:04:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-creating-table-only-for-different-values/m-p/567825#M75149</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2019-06-21T04:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare : creating table only for different values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-creating-table-only-for-different-values/m-p/567839#M75151</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;comparing table_1 and table_2 only for variable B and D". What does this mean? What observations would output_table contain?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 05:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-creating-table-only-for-different-values/m-p/567839#M75151</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-06-21T05:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare : creating table only for different values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-creating-table-only-for-different-values/m-p/567961#M75154</link>
      <description>&lt;P&gt;The VAR statement restricts which variables are compared. So I suspect you may be looking for&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR B D;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if by "output table" you mean a data set or not.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 15:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-creating-table-only-for-different-values/m-p/567961#M75154</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-21T15:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare : creating table only for different values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-creating-table-only-for-different-values/m-p/568188#M75155</link>
      <description>&lt;P&gt;Yes, I am referring to data set. My concern is if I put var then it will give me comparison for the columns in Var statement but it will exclude rest of the columns from&amp;nbsp; out put which I need.&lt;/P&gt;&lt;P&gt;Comparing data set only for one column retaining all other columns in the output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kajal&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2019 05:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-creating-table-only-for-different-values/m-p/568188#M75155</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2019-06-23T05:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare : creating table only for different values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-creating-table-only-for-different-values/m-p/568413#M75162</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Yes, I am referring to data set. My concern is if I put var then it will give me comparison for the columns in Var statement but it will exclude rest of the columns from&amp;nbsp; out put which I need.&lt;/P&gt;
&lt;P&gt;Comparing data set only for one column retaining all other columns in the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Kajal&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I suspect we are having issues if English is not your native language. The above sort of contradicts your original problem description.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;output_table should have A,B,C,D,E (comparing table_1 and table_2 only for variable B and D)&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;which says you only want to compare B and D.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best at this point would be to provide small examples of data sets table_1 , table_2 and what the desired output should look like for those examples. Provide examples of the kind of matches/ difference you expect to see. Each set should likely only need 10 or 15 rows of data. Provide the data as data step code such as:&lt;/P&gt;
&lt;PRE&gt;data table_1;
  input a b c d e;
datalines;
1 2 3 4 5
2 3 4 5 6
;
&lt;/PRE&gt;
&lt;P&gt;Test the code to make sure that it creates data sets. Then Paste the code into a code box opened with the {I} or "running man" icons at the top of the forum message box to preserve correct formatting so the code runs. The message windows on this forum will reformat text and sometimes code pasted in the main windows will not run as pasted and reformatted.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 16:17:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-compare-creating-table-only-for-different-values/m-p/568413#M75162</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-24T16:17:15Z</dc:date>
    </item>
  </channel>
</rss>

