<?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: Help with Proc Compare in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563763#M10932</link>
    <description>&lt;P&gt;that snippet of code doesn't look like SAS code.&lt;/P&gt;
&lt;P&gt;A few links in how to do compressions using SAS are below with examples on the links.&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;A href="https://www.sascrunch.com/proc-compare.html" target="_blank"&gt;https://www.sascrunch.com/proc-compare.html&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n0c1y14wyd3u7yn1dmfcpaejllsn.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n0c1y14wyd3u7yn1dmfcpaejllsn.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146741.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146741.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2019 17:06:43 GMT</pubDate>
    <dc:creator>VDD</dc:creator>
    <dc:date>2019-06-05T17:06:43Z</dc:date>
    <item>
      <title>Help with Proc Compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563717#M10927</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way to replace the Base and Compare values in the proc compare output, to enable easier review. Example - Base is replaced as QC, Compare is replaced as&amp;nbsp; Production.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 14:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563717#M10927</guid>
      <dc:creator>shc1212</dc:creator>
      <dc:date>2019-06-05T14:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Proc Compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563724#M10928</link>
      <description>&lt;P&gt;something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let mybase = thisone;
%let mycomp = thatone;

proc compare base=&amp;amp;mybase. compare=&amp;amp;mycomp.;&lt;BR /&gt;	
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if you are comparing to a production dataset the base should be assigned to the production table as a good rule of thumb.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 14:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563724#M10928</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-06-05T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Proc Compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563747#M10930</link>
      <description>&lt;P&gt;that wont work.&amp;nbsp; see the output below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want is to replace that Base and Compare by QC and Production.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;|| Planned Treatment for Period 01 (N)&lt;BR /&gt;|| &lt;FONT color="#FF0000"&gt;Base Compare&lt;/FONT&gt;&lt;BR /&gt;USUBJID || TRT01PN TRT01PN Diff. % Diff&lt;BR /&gt;_________________ || _________ _________ _________ _________&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 16:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563747#M10930</guid>
      <dc:creator>shc1212</dc:creator>
      <dc:date>2019-06-05T16:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Proc Compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563748#M10931</link>
      <description>&lt;P&gt;You can create a small macro that does this easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro customCompare(source = , compare = );

proc compare base=&amp;amp;source. compare = &amp;amp;compare &amp;lt;other options as needed&amp;gt;;
....

run;

%mend customCompare;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And then you can call it each time as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%customCompare(base = QC, compare=Production);

%customCompare(base = QC1, compare=Production2);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/276795"&gt;@shc1212&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was wondering if there is a way to replace the Base and Compare values in the proc compare output, to enable easier review. Example - Base is replaced as QC, Compare is replaced as&amp;nbsp; Production.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 16:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563748#M10931</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-05T16:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Proc Compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563763#M10932</link>
      <description>&lt;P&gt;that snippet of code doesn't look like SAS code.&lt;/P&gt;
&lt;P&gt;A few links in how to do compressions using SAS are below with examples on the links.&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;A href="https://www.sascrunch.com/proc-compare.html" target="_blank"&gt;https://www.sascrunch.com/proc-compare.html&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n0c1y14wyd3u7yn1dmfcpaejllsn.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/proc/65145/HTML/default/viewer.htm#n0c1y14wyd3u7yn1dmfcpaejllsn.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146741.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000146741.htm&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:06:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563763#M10932</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2019-06-05T17:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Proc Compare</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563765#M10933</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/276795"&gt;@shc1212&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;that wont work.&amp;nbsp; see the output below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want is to replace that Base and Compare by QC and Production.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;|| Planned Treatment for Period 01 (N)&lt;BR /&gt;|| &lt;FONT color="#FF0000"&gt;Base Compare&lt;/FONT&gt;&lt;BR /&gt;USUBJID || TRT01PN TRT01PN Diff. % Diff&lt;BR /&gt;_________________ || _________ _________ _________ _________&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not easily, you could by modifying the template for the procedure but I highly suspect that's more work that it's worth. Instead, I would try to pipe the results to a data set, customize the names within the data set and then use PROC PRINT/REPORT to display the output.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2019 17:11:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-with-Proc-Compare/m-p/563765#M10933</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-05T17:11:57Z</dc:date>
    </item>
  </channel>
</rss>

