<?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: Comparing two sas tables in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Comparing-two-sas-tables/m-p/525666#M73518</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname local "D:\test_dir"; * this happens in your local session;


%let rmtsrvr = xxxxxxxx xxxx;
options comamid=tcp remote=rmtsrvr;
signon user="xxxx" password="xxxxxxxxxxxxxxxxxxxxxx";

rsubmit; * from here on everything happens in the remote session;

libname rmt "/xxx/xxx/xxxx";

proc compare base=rmt.dt1 compare=local.dt1_t;
* you never executed a libname for local in the remote session, so it does not have that libref;

ID var1 var2;
run;

endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You should do this instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname local "D:\test_dir";

%let rmtsrvr = xxxxxxxx xxxx;
options comamid=tcp remote=rmtsrvr;
signon user="xxxx" password="xxxxxxxxxxxxxxxxxxxxxx";

libname rmt remote "/xxx/xxx/xxxx" server=rmtsrvr;

proc compare base=rmt.dt1 compare=local.dt1_t;
ID var1 var2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now, everything executes locally, and the libref for rmt points to the SAS/CONNECT session.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 10:03:19 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-01-09T10:03:19Z</dc:date>
    <item>
      <title>Comparing two sas tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Comparing-two-sas-tables/m-p/525651#M73517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to compare two different sas datasets lying in two different servers. One is Unix and the other one is in Windows.&amp;nbsp; I am running my sas session in windows , connecting to Unix using SAS/CONNECT to compare both the datasets.&amp;nbsp; The program is throwing an error that the local library is not recognised. Please find below the snippet.&amp;nbsp;&amp;nbsp;The local directory was recognized by PROC DOWNLOADS but not by PROC COMPARE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname local "D:\test_dir";&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%let rmtsrvr = xxxxxxxx xxxx;&lt;BR /&gt;options comamid=tcp remote=rmtsrvr;&lt;BR /&gt;signon user="xxxx" password="xxxxxxxxxxxxxxxxxxxxxx";&lt;/P&gt;
&lt;P&gt;rsubmit;&lt;/P&gt;
&lt;P&gt;libname rmt "/xxx/xxx/xxxx";&lt;/P&gt;
&lt;P&gt;proc compare base=rmt.dt1 compare=local.dt1_t;&lt;BR /&gt;ID var1 var2;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;endrsubmit;&lt;/P&gt;
&lt;P&gt;ERROR: Libref LOCAL is not assigned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Vijay.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 07:39:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Comparing-two-sas-tables/m-p/525651#M73517</guid>
      <dc:creator>vijayanand</dc:creator>
      <dc:date>2019-01-09T07:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing two sas tables</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Comparing-two-sas-tables/m-p/525666#M73518</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname local "D:\test_dir"; * this happens in your local session;


%let rmtsrvr = xxxxxxxx xxxx;
options comamid=tcp remote=rmtsrvr;
signon user="xxxx" password="xxxxxxxxxxxxxxxxxxxxxx";

rsubmit; * from here on everything happens in the remote session;

libname rmt "/xxx/xxx/xxxx";

proc compare base=rmt.dt1 compare=local.dt1_t;
* you never executed a libname for local in the remote session, so it does not have that libref;

ID var1 var2;
run;

endrsubmit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You should do this instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname local "D:\test_dir";

%let rmtsrvr = xxxxxxxx xxxx;
options comamid=tcp remote=rmtsrvr;
signon user="xxxx" password="xxxxxxxxxxxxxxxxxxxxxx";

libname rmt remote "/xxx/xxx/xxxx" server=rmtsrvr;

proc compare base=rmt.dt1 compare=local.dt1_t;
ID var1 var2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now, everything executes locally, and the libref for rmt points to the SAS/CONNECT session.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 10:03:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Comparing-two-sas-tables/m-p/525666#M73518</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-01-09T10:03:19Z</dc:date>
    </item>
  </channel>
</rss>

