<?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 Proc compare (One SAS Dataset against 10 different SQL tables) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-One-SAS-Dataset-against-10-different-SQL-tables/m-p/319421#M70148</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement of proc compare of one SAS dataset against 10 sql tables. This SAS dataset has a total of&amp;nbsp;64,323,006 records which is copied in 10 SQL tables. Below&amp;nbsp;is the SAS dataset breakup inserted into SQL physical tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Iteration,StartObs,EndObs,TotalObs&lt;BR /&gt;1,1,7147000,7147000&lt;BR /&gt;2,7147001,14294000,7147000&lt;BR /&gt;3,14294001,21441000,7147000&lt;BR /&gt;4,21441001,28588000,7147000&lt;BR /&gt;5,28588001,35735000,7147000&lt;BR /&gt;6,35735001,42882000,7147000&lt;BR /&gt;7,42882001,50029000,7147000&lt;BR /&gt;8,50029001,57176000,7147000&lt;BR /&gt;9,57176001,64323000,7147000&lt;BR /&gt;10,64323001,64323006,6&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Next I want to run a proc compare of sas dataset against these 10 sql tables (somehow at proc compare these 10 sql tables should appear as a single dataset. I dont want to download these sql tables into sas dataset but directly compare in as is&amp;nbsp;condition)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request if anyone can help on this.&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;P&gt;Anil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2016 01:06:45 GMT</pubDate>
    <dc:creator>aj34321</dc:creator>
    <dc:date>2016-12-16T01:06:45Z</dc:date>
    <item>
      <title>Proc compare (One SAS Dataset against 10 different SQL tables)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-One-SAS-Dataset-against-10-different-SQL-tables/m-p/319421#M70148</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement of proc compare of one SAS dataset against 10 sql tables. This SAS dataset has a total of&amp;nbsp;64,323,006 records which is copied in 10 SQL tables. Below&amp;nbsp;is the SAS dataset breakup inserted into SQL physical tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Iteration,StartObs,EndObs,TotalObs&lt;BR /&gt;1,1,7147000,7147000&lt;BR /&gt;2,7147001,14294000,7147000&lt;BR /&gt;3,14294001,21441000,7147000&lt;BR /&gt;4,21441001,28588000,7147000&lt;BR /&gt;5,28588001,35735000,7147000&lt;BR /&gt;6,35735001,42882000,7147000&lt;BR /&gt;7,42882001,50029000,7147000&lt;BR /&gt;8,50029001,57176000,7147000&lt;BR /&gt;9,57176001,64323000,7147000&lt;BR /&gt;10,64323001,64323006,6&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Next I want to run a proc compare of sas dataset against these 10 sql tables (somehow at proc compare these 10 sql tables should appear as a single dataset. I dont want to download these sql tables into sas dataset but directly compare in as is&amp;nbsp;condition)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Request if anyone can help on this.&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;P&gt;Anil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 01:06:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-One-SAS-Dataset-against-10-different-SQL-tables/m-p/319421#M70148</guid>
      <dc:creator>aj34321</dc:creator>
      <dc:date>2016-12-16T01:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare (One SAS Dataset against 10 different SQL tables)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-One-SAS-Dataset-against-10-different-SQL-tables/m-p/319428#M70153</link>
      <description>&lt;P&gt;10 proc compares?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use FIRSTOBS and OBS dataset options to limit your records.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 02:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-One-SAS-Dataset-against-10-different-SQL-tables/m-p/319428#M70153</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-16T02:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc compare (One SAS Dataset against 10 different SQL tables)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-compare-One-SAS-Dataset-against-10-different-SQL-tables/m-p/319482#M70181</link>
      <description>&lt;P&gt;Create a view&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sqlview / view=sqlview;
set
  sql.table1
  sql.table2
  ...
  sql.table10
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and use that in the compare.&lt;/P&gt;
&lt;P&gt;If library sql points to a external RDBMS, the compare might produce unintended results because of differing number storage.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 09:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-compare-One-SAS-Dataset-against-10-different-SQL-tables/m-p/319482#M70181</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-16T09:25:14Z</dc:date>
    </item>
  </channel>
</rss>

