<?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 route the html page of a proc compare procedure to a specific path and filename. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-route-the-html-page-of-a-proc-compare-procedure-to-a/m-p/950241#M45500</link>
    <description>&lt;P&gt;You can use an ODS statement to setup an HTML destination to that file.&amp;nbsp; Include an ID for the new HTML destination to distinguish it from any other HTML destinations that EG might have created already.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html(compare) path="/.../sasdata/Data_Retention/Validation/output" file="comparison.html";
... rest of code that makes output here ...
ods html(compare) close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You will probably want to turn off sending the results to the default HTML destination that EG creates for you, unless you want two copies.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 17:27:35 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-11-08T17:27:35Z</dc:date>
    <item>
      <title>How to route the html page of a proc compare procedure to a specific path and filename.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-route-the-html-page-of-a-proc-compare-procedure-to-a/m-p/950236#M45498</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to compare more thant 1 000&amp;nbsp; datasets using the proc compare procedure. To do that, I am using a call execute and it works well.&lt;/P&gt;
&lt;P&gt;However, the results are print on a html page of SAS EG. How to route this HTML page to a precise location and name? Example&amp;nbsp;/.../sasdata/Data_Retention/Validation/output/comparison.html.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname source base '/.../sasdata/Data_Retention/Validation/datasets';

Data workingdatasetdr (keep=path fname);
set source.workingdatasetdr;
run; 

Data workingdataset (keep=path fname);
set source.workingdataset;
run;

proc sort data=workingdataset nodupkey out=workingdataset_ndk;
by path fname;
run;
 
proc sort data=workingdatasetdr nodupkey out=workingdatasetdr_ndk;
by path fname;
run;

proc compare base=workingdataset_ndk compare=workingdatasetdr_ndk;
var fname;
run;


/*********************************************/

data workingdataset_ndk (rename=(path=path1 fname=fname1));
set workingdataset_ndk;
run;

data workingdatasetdr_ndk (rename=(path=path2 fname=fname2));
set workingdatasetdr_ndk;
run;

%macro doit(path1,path2,fname1,fname2);
libname source1 spde "&amp;amp;path1.";
libname source2 spde "&amp;amp;path2.";


proc compare base=source1.&amp;amp;fname1. compare=source2.&amp;amp;fname2.;
run;

libname source1 clear;
libname source2 clear;
%mend doit;

proc sql;
create table workingdataset as
select a.*,
       b.*
from workingdataset_ndk as a
inner join workingdatasetdr_ndk as b 
on(a.fname1=b.fname2);
quit;


data workingdataset;
set workingdataset (firstobs=1 obs=5);
run;

data _null_;
   set workingdataset;
   call execute(cats('%nrstr(%doit)(path1=',path1,',path2=',path2,',fname1=',fname1,',fname2=',fname2,');'));   
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Nov 2024 16:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-route-the-html-page-of-a-proc-compare-procedure-to-a/m-p/950236#M45498</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-11-08T16:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to route the html page of a proc compare procedure to a specific path and filename.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-route-the-html-page-of-a-proc-compare-procedure-to-a/m-p/950240#M45499</link>
      <description>&lt;P&gt;A single html page or a separate one for each comparison?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The statement is going to be something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS HTML path="/.../sasdata/Data_Retention/Validation/output/"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; body ="comparison.html"&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;all the code generating output goes here&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods html close;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 17:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-route-the-html-page-of-a-proc-compare-procedure-to-a/m-p/950240#M45499</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-11-08T17:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to route the html page of a proc compare procedure to a specific path and filename.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-route-the-html-page-of-a-proc-compare-procedure-to-a/m-p/950241#M45500</link>
      <description>&lt;P&gt;You can use an ODS statement to setup an HTML destination to that file.&amp;nbsp; Include an ID for the new HTML destination to distinguish it from any other HTML destinations that EG might have created already.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html(compare) path="/.../sasdata/Data_Retention/Validation/output" file="comparison.html";
... rest of code that makes output here ...
ods html(compare) close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You will probably want to turn off sending the results to the default HTML destination that EG creates for you, unless you want two copies.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 17:27:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-route-the-html-page-of-a-proc-compare-procedure-to-a/m-p/950241#M45500</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-11-08T17:27:35Z</dc:date>
    </item>
  </channel>
</rss>

