<?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 SAS Access Connections in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/331403#M21995</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to connect SAS to Access DB (.mdb) l, located in Network drive,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried libname:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; myLib &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Access&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"I:\Database_p.mdb"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;and got the following error, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR: The ACCESS engine cannot be found.&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried proc sql odbc:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; myacc &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;odbc&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;required&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Driver={Microsoft Access Driver (*.mdb, *.accdb)};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;DBQ=I:\Database_p.mdb"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;and got the following error,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR: The ODBC engine cannot be found.&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 05:25:12 GMT</pubDate>
    <dc:creator>SAS_INFO</dc:creator>
    <dc:date>2017-02-10T05:25:12Z</dc:date>
    <item>
      <title>SAS Access Connections</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/331403#M21995</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to connect SAS to Access DB (.mdb) l, located in Network drive,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried libname:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; myLib &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;Access&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;"I:\Database_p.mdb"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;and got the following error, &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR: The ACCESS engine cannot be found.&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried proc sql odbc:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; myacc &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;odbc&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;required&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Driver={Microsoft Access Driver (*.mdb, *.accdb)};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;DBQ=I:\Database_p.mdb"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;and got the following error,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR: The ODBC engine cannot be found.&lt;/P&gt;&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 05:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/331403#M21995</guid>
      <dc:creator>SAS_INFO</dc:creator>
      <dc:date>2017-02-10T05:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access Connections</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/331405#M21996</link>
      <description>&lt;P&gt;Run: proc setinit; run; to confirm what products you have licenced. You should be looking for SAS/ACCESS to PC Files or SAS/ACCESS to ODBC. If these products are not in your SAS licence and not installed this could explain the errors you are seeing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 06:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/331405#M21996</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-02-10T06:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access Connections</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/331741#M22025</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Importing a table from a MS Access database into SAS without Access to PC-Files

You may be able to use the IML interface to R and even create a SAS dataset.
I had to use 32bit R because I could not get 64bit SAS to work,
even though my SAS and MS Access is 64bit.

There are other packages but I am more familiar with RODBC.


HAVE  MDB that shipped with SAS
===============================

* copy the mdb that comes with SAS, I added the class dataset;

x "copy C:\Progra~1\sashome\SASFoundation\9.4\access\sasmisc\demo.mdb d:\mdb\demo.mdb";

10 d:\\mdb\\demo      class   TABLE
11 d:\\mdb\\demo  Customers   TABLE
12 d:\\mdb\\demo  Employees   TABLE
13 d:\\mdb\\demo    Invoice   TABLE
14 d:\\mdb\\demo     Orders   TABLE


CLASS
Up to 40 obs from sashelp.class total obs=19

Obs    NAME        SEX  AGE HEIGHT  WEIGHT

  1    Alfred       M    14     69   112.5
  2    Alice        F    13   56.5      84
  3    Barbara      F    13   65.3      98
  4    Carol        F    14   62.8   102.5
  5    Henry        M    14   63.5   102.5
  6    James        M    12   57.3      83
  7    Jane         F    12   59.8    84.5
  8    Janet        F    15   62.5   112.5
  9    Jeffrey      M    13   62.5      84
 10    John         M    12     59    99.5
 11    Joyce        F    11   51.3    50.5
 12    Judy         F    14   64.3      90
 13    Louise       F    12   56.3      77
 14    Mary         F    15   66.5     112
 15    Philip       M    16     72     150
 16    Robert       M    12   64.8     128
 17    Ronald       M    15     67     133
 18    Thomas       M    11   57.5      85
 19    William      M    15   66.5     112


WANT SAS dataset with 13 year olds;
====================================

Up to 40 obs from class total obs=3

Obs    NAME       SEX AGE HEIGHT   WEIGHT

 1     Alice       F   13   56.5       84
 2     Barbara     F   13   65.3       98
 3     Jeffrey     M   13   62.5       84

* read access table andd create SAS dataset;
* had to use the 32bit driver and R32 bit;
%utl_submit_r32("
    source('c:/Program Files/R/R-3.3.2/etc/Rprofile.site',echo=T);
    Sys.setenv(JAVA_HOME='C:\\Program Files (x86)\\Java\\jre7');
    library(RODBC);
    library(foreign);
    myDB &amp;lt;- odbcConnectAccess('d:/mdb/demo.mdb',uid='admin',pwd='');
    sqlTables(myDB);
    class&amp;lt;- sqlQuery(myDB, paste('select * from class where AGE=13'));
    write.dta(class,convert.factors='string',version = 10L, 'd:/dta/class.dta')
");

filename imp 'd:/dta/class.dta' lrecl=32756;
proc import
   out=work.class
   file=imp
   dbms=DTA replace;
run;

proc print data=class;
run;quit;

Up to 40 obs from class total obs=3

Obs    NAME       SEX AGE HEIGHT   WEIGHT

 1     Alice       F   13   56.5       84
 2     Barbara     F   13   65.3       98
 3     Jeffrey     M   13   62.5       84

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Feb 2017 22:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/331741#M22025</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-02-10T22:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access Connections</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332033#M22030</link>
      <description>&lt;P&gt;Hi SAS KIWI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried Proc Setinit, and could see the following,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS/ACCESS&amp;nbsp; Interface to Oracle&lt;/P&gt;&lt;P&gt;SAS/ACCESS&amp;nbsp; Interface to PC Files&lt;/P&gt;&lt;P&gt;SAS/ACCESS Interface to Teradata&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i guess these products are there.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 23:04:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332033#M22030</guid>
      <dc:creator>SAS_INFO</dc:creator>
      <dc:date>2017-02-12T23:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access Connections</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332072#M22031</link>
      <description>&lt;P&gt;&lt;EM&gt;Proc Setinit&lt;/EM&gt; shows you what's licensed but that doesn't mean it has also been properly installed and configured.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Proc Product_Status&lt;/EM&gt; will show you what's installed.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sgf/2012/11/12/how-to-find-your-sas-version-and-components-list/" target="_blank"&gt;http://blogs.sas.com/content/sgf/2012/11/12/how-to-find-your-sas-version-and-components-list/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 05:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332072#M22031</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-02-13T05:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access Connections</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332384#M22075</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked &lt;STRONG&gt;PROC PRODUCT_STATUS, and i could see ACCESS is installed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For SAS/ACCESS Interface to Oracle with version info .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;STRONG&gt;Aruna&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 22:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332384#M22075</guid>
      <dc:creator>SAS_INFO</dc:creator>
      <dc:date>2017-02-13T22:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access Connections</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332387#M22076</link>
      <description>&lt;P&gt;To connect to MS Access you need either&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;SAS/ACCESS to PC Files&lt;/EM&gt; or&amp;nbsp;&lt;EM&gt;SAS/ACCESS to ODBC&lt;/EM&gt;&lt;/SPAN&gt;&amp;nbsp;installed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From what you write, you've got only&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;SAS/ACCESS &amp;nbsp;to Oracle &lt;/EM&gt;installed which allows you to connect to an Oracle Database.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;N.B: The word &lt;EM&gt;Access&lt;/EM&gt; in the &lt;EM&gt;SAS/Access&lt;/EM&gt; modules has nothing to do with MS Access. That's just the naming convention SAS uses for its modules.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 22:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332387#M22076</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-02-13T22:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access Connections</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332444#M22079</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have SAS/ACCESS to PC files, listed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Aruna &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 01:00:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332444#M22079</guid>
      <dc:creator>SAS_INFO</dc:creator>
      <dc:date>2017-02-14T01:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Access Connections</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332471#M22083</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Spoke to IT and found that my SAS EG is 64 bit and ACCESS is 32 bit &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;searched and used this piece of code but dint worked,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;import&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;dbms&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=accesscs&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=A1 &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;replace&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;'T_inven'&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;port&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="4"&gt;8561&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;server&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;"SASA"&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;database&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;'I:\ANALYTICS\ Database_PROD.accdb'&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 03:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Access-Connections/m-p/332471#M22083</guid>
      <dc:creator>SAS_INFO</dc:creator>
      <dc:date>2017-02-14T03:59:08Z</dc:date>
    </item>
  </channel>
</rss>

