<?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: Best way to import Access Table? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84250#M24154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't make sense of that log. I remember getting the same type of messages when I tried to run two sessions at once. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But yes, SAS views can be used like normal tables. Sometimes, it is preferable to transform them into local temporary tables (replace the word &lt;STRONG&gt;view&lt;/STRONG&gt; with &lt;STRONG&gt;table&lt;/STRONG&gt; in the query) to avoid querying the remote database each time you use them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2012 16:33:10 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2012-04-17T16:33:10Z</dc:date>
    <item>
      <title>Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84242#M24146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&amp;nbsp; I've&amp;nbsp; a two part question I currently have a&amp;nbsp; access table that I need to import into sas. The table has over 100k records . The Access table is in a share directory&amp;nbsp; which takes a long time to do an import (Proc Import- (currently it freezes my laptop) I tried Libname&amp;nbsp; an its brings in everthing fast ( which is great) the issue is there are&amp;nbsp; a lot tables in the the mdb&amp;nbsp; that when i click on the libname&amp;nbsp; it takes on avg 25-30 min to open. Is there a way I can use libname&amp;nbsp; to refer to one table named&amp;nbsp; "TEST" only ? and not everything in there.&amp;nbsp; What I want to do is on table 'TEST" I need to pull the last 30 days worth of data. Is there a way to use&amp;nbsp; proc import&amp;nbsp; and do a "Date" -30 or in libname&amp;nbsp;&amp;nbsp;&amp;nbsp; select table "TEST" and do a -30?&amp;nbsp; Thanks for your assistance &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2012 03:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84242#M24146</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-04-15T03:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84243#M24147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try ACCESS=READONLY and DEFER=YES in your libname statement. It might speed things up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way would be to try the SQL pass-through facility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way would be to create a small ACCESS database with only the tables that you want as linked tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 01:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84243#M24147</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-16T01:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84244#M24148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way in doing the libname I can filter for only last 30 days worth of data?&amp;nbsp; Where would I insert ACCESS=READONLY and DEFER=YES what I hV E NOW IS " libname Access c:\ Complinance.mdb;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 03:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84244#M24148</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-04-16T03:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84245#M24149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;libname myLib Access "c:\ Complinance.mdb" READONLY DEFER=YES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data selection cannot be done in the libname statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 11:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84245#M24149</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-16T11:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84246#M24150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best method would be to use the SQL Pass-through facility because the subsetting would be done by Access. On my machine (Win-XP, Access 2007, SAS 9.3) the following works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to Access as db (path="C:\Documents and Settings\******\myDatabase.accdb");&lt;BR /&gt;create view myData as&lt;BR /&gt;select * from connection to db (select * from myTable where myTable.date &amp;gt;= int(now())-30 );&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=myData; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query being stored in a view, it is run only when you run the proc print. Note that the SQL in parenthesis must be valid Microsoft SQL, not SAS SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 16:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84246#M24150</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-16T16:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84247#M24151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PG Stats&lt;/P&gt;&lt;P&gt;I plug in your code an&amp;nbsp; did&amp;nbsp; test run on a access db I 'v on my desktop an it worked great. When I tried it on the real Access db I rec this error.Does it matter type of access it was to a .mdb not a accdb? The "Settle" is in a date/ time format dd/mm/yy 00:00:00. The&amp;nbsp; real Path is to a shared directory&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;ERROR: Prepare: Syntax error in query.&amp;nbsp; Incomplete query clause.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;SQL statement: select * from "tbl_dep" where tbl_dep.Settle&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;= int(now())-30&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;ERROR: SQL View WORK.MYDATA could not be processed because at least one of the data sets, or views,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;referenced directly (or indirectly) by it could not be located, or opened successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="font-family: 'SAS Monospace'; font-size: 8pt;"&gt;Thanks Again for all your help&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 13:26:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84247#M24151</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-04-17T13:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84248#M24152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;"tbl_dep"&lt;/STRONG&gt; is not a valid table name in MS-Access, use &lt;STRONG&gt;[tbl_dep]&lt;/STRONG&gt; or simply &lt;STRONG&gt;tbl_dep.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PG&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 14:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84248#M24152</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-17T14:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84249#M24153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="64"&gt;proc sql;&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" colspan="3" height="20"&gt;33&lt;BR /&gt;&amp;nbsp; create table depcount as&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" height="20"&gt;34 (select&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" colspan="2" height="20"&gt;35&lt;BR /&gt;&amp;nbsp; Terminal_ID,&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" colspan="3" height="20"&gt;36&lt;BR /&gt;&amp;nbsp; Count(Terminal_ID) As Repeat&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" colspan="2" height="20"&gt;37&lt;BR /&gt;&amp;nbsp; from Mydata&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt; i Hi PG STATS,The [] worked the issue is when I try to create a simple table based of&amp;nbsp; the Mydata table(view). I get a error I enclosed error log.&amp;nbsp; Since its a view could I use it like a normal table in SAS? or is it limited ? Thanks again &lt;/TR&gt;&lt;TR&gt;&lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" colspan="3" height="20"&gt;38&lt;BR /&gt;&amp;nbsp; Where ON_SCHEDULE eq 'False'&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" colspan="3" height="20"&gt;NOTE:&lt;BR /&gt;&amp;nbsp; This SAS session is using a registry in WORK. All changes will be lost at the&lt;BR /&gt;&amp;nbsp; end of this&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" height="20"&gt;session.&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" colspan="3" height="20"&gt;NOTE:&lt;BR /&gt;&amp;nbsp; This SAS session is using a registry in WORK. All changes will be lost at the&lt;BR /&gt;&amp;nbsp; end of this&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" height="20"&gt;session.&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" colspan="3" height="20"&gt;ERROR:&lt;BR /&gt;&amp;nbsp; Maximum level of nesting of macro functions exceeded.&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&lt;TD class="xl65" colspan="3" height="20"&gt;ERROR:&lt;BR /&gt;&amp;nbsp; Maximum level of nesting of macro functions exceeded.&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="192"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="3" height="20"&gt;&lt;BR /&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 16:10:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84249#M24153</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-04-17T16:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84250#M24154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't make sense of that log. I remember getting the same type of messages when I tried to run two sessions at once. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But yes, SAS views can be used like normal tables. Sometimes, it is preferable to transform them into local temporary tables (replace the word &lt;STRONG&gt;view&lt;/STRONG&gt; with &lt;STRONG&gt;table&lt;/STRONG&gt; in the query) to avoid querying the remote database each time you use them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 16:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84250#M24154</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-17T16:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84251#M24155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi PGStats,&lt;/P&gt;&lt;P&gt;I change it to table from view an now its avg about 1hr to pull data. I might have to learn to live with that unless you have any suggestion it has over 500k records an grows everyday&amp;nbsp; a little... I tried creating a count of all the TID that have "false"&amp;nbsp; an it states remerging&amp;nbsp; what do you think is causing that?&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 64px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20" width="64"&gt;&lt;BR /&gt;&amp;nbsp; &lt;FORM enctype="multipart/form-data" id="MasterForm" onsubmit=""&gt;&lt;BR /&gt;&amp;nbsp; &lt;DIV&gt;&lt;BR /&gt;&amp;nbsp; &lt;DIV&gt;&lt;BR /&gt;&amp;nbsp; &lt;DIV&gt;&lt;BR /&gt;&amp;nbsp; &lt;DIV&gt;&lt;BR /&gt;&amp;nbsp; &lt;DIV&gt;&lt;BR /&gt;&amp;nbsp; &lt;DIV&gt;&lt;BR /&gt;&amp;nbsp; &lt;DIV onclick=""&gt;174&lt;BR /&gt;&amp;nbsp; proc sql;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/FORM&gt;&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20"&gt;175 create table depcount as&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20"&gt;176 (select&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20"&gt;177 Terminal_ID,&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20"&gt;178 Count(distinct&lt;BR /&gt;&amp;nbsp; Terminal_ID) As Repeat&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20"&gt;179 from Mydata&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20"&gt;180 Where ON_SCHEDULE eq&lt;BR /&gt;&amp;nbsp; 'False'&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20"&gt;181 )&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20"&gt;182 ;&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20"&gt;NOTE: The query requires&lt;BR /&gt;&amp;nbsp; remerging summary statistics back with the original data.&lt;/TD&gt; &lt;/TR&gt; &lt;TR&gt;&amp;nbsp; &lt;TD class="xl65" height="20"&gt;NOTE: Table WORK.DEPCOUNT&lt;BR /&gt;&amp;nbsp; created, with 15 rows and 2 columns.&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;/TD&gt; &lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 22:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84251#M24155</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-04-17T22:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84252#M24156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your query should read:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create table depcount as&lt;/P&gt;&lt;P&gt;select Terminal_ID, count(Terminal_ID) as Repeat&lt;/P&gt;&lt;P&gt;from MyData &lt;/P&gt;&lt;P&gt;where ON_SCHEDULE = "False"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group by Terminal_ID;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This counts the number of records for each Terminal_ID that have ON_SCHEDULE = "False".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the part of the SQL job that pulls the MS-Access data into a local table? I find it strange that it takes so long. Please include the table record count as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 01:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84252#M24156</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-18T01:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84253#M24157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="ecxMsoNormal"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;Part1)This takes 1 hr on avg to pull the table has 500k records. When the table gets created with the 30 filter it produces 23k records&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;connect&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; Access&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; db (path=&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;"g:\Shared Databases\CCMS 2\CCMS2Production.mdb"&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;create&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; myData&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; *&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; connection to db (&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; [tbl_deposit]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; tbl_deposit.Scheduled_Settle &amp;gt;= &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;(now())-&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;30&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;2nd Part) If I want to add an additional criteria " And Repeat &amp;gt;1"&amp;nbsp; is just an "AND"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;SAS is a funny program how would&amp;nbsp; I add wild card too pick up all types of False(I.E false,False,FALSE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;create&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; depcount&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; Terminal_ID,Count(Terminal_ID)&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; Repeat&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; Mydata&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;Where&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; ON_SCHEDULE =&lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;"FALSE"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;group&lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; Terminal_ID;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;/P&gt;&lt;P class="ecxMsoNormal"&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;tHANKS AGAIN PGSTATS&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 06:48:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84253#M24157</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-04-18T06:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84254#M24158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks PG Stats for all your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 20:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84254#M24158</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-04-19T20:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84255#M24159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PGSTATS,&lt;/P&gt;&lt;P&gt;How do I select for correct answer ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 20:26:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84255#M24159</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-04-19T20:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84256#M24160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello BETO, sorry to take so long...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 1) Now I understand. It is the part where Access, running on your machine, accesses your database on a network that takes so long. The only way to improve that I can think of, would be to have an index on variable Scheduled_Settle,. if it doesn't already exists.&lt;/P&gt;&lt;P&gt;Part 2) where upcase(on_schedule) = "FALSE" and repeat &amp;gt; 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 20:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84256#M24160</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-19T20:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84257#M24161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PGStats,&lt;/P&gt;&lt;P&gt;Thank you so much for your assistance with my question... BTW I fig out how to reduce the time of the import from 1hr to 7 min.. I went into the table an change all the text columns in access to 'Unicode compress" ....&amp;nbsp; How can I select that the question has been answer? Thanks a bunch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 13:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84257#M24161</guid>
      <dc:creator>BETO</dc:creator>
      <dc:date>2012-04-24T13:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to import Access Table?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84258#M24162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great. I hope this can also be useful to others. Network transit was the real bottleneck here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To mark a question as answered, you must open the message (not just a preview) and select one of the green stars that says "Correct answer".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 15:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Best-way-to-import-Access-Table/m-p/84258#M24162</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-04-24T15:29:30Z</dc:date>
    </item>
  </channel>
</rss>

