<?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 Import/Update Access Database linked to a SharePoint List using SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-Update-Access-Database-linked-to-a-SharePoint-List-using/m-p/708710#M217836</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import, update a table in Access database (64 bit) using SAS (SAS Enterprise Guide, Version: 7.12 (64 bit)). I have been trying to identify the problem and resolution for a few days now and based on all the searches I have done in the last few days, I think I have narrowed down the problem and looking for some help to resolve this last bit. Although there are similar problems posted and resolutions discussed, none of them worked for me or the problem I have (or the solution I am looking for) is slightly different from those.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also new to SAS as well as SharePoint so it is possible that I am making a mistake out of my limited knowledge on SAS coding or SAS/ SharePoint architecture in general.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is an overview of the systems that are connected to this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have a SharePoint site. I have been given full permission to a particular page where I created a List that I am trying to work with.&lt;/P&gt;&lt;P&gt;2. I have created an access database and established link between the Access and SharePoint List. So, if I enter a value in the (Access) table, the List gets updated instantly, so no issue with regards to the connection (I think).&lt;/P&gt;&lt;P&gt;3. I have SAS EG that can connect (create, update, import etc. ) with other Access DB files (not linked with SharePoint) located in the same folder.&lt;/P&gt;&lt;P&gt;The Access DB file is located in a Network Drive location mapped as my 'Documents' folder.(Meaning, in window explorer, if I click on the 'Documents', I am actually referring to the location in the shared drive so everything I have in my pc have a back up in that drive automatically)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The things that I have tried so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC HTTP:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Initially, I tried with the PROC HTTP procedure (and was not considering communicating via ACCESS) only to learn afterwards that my company wont allow SAS communication through HTTP protocol because of security. So this is not an option at the moment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC IMPORT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Next I tried with the PROC IMPORT procedure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC IMPORT OUT= outdata
DATATABLE='tablename'
DBMS=ACCESS REPLACE;
DATABASE="full path to the access file starting with \\...";
USER= admin; 
PASSWORD=''; 
USEDATE=YES;
SCANTIME=NO;
DBSASLABEL=NONE;

proc print;
RUN;&lt;/PRE&gt;&lt;P&gt;Error received (with warnings for all of the columns in the table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: Failed to scan text length or time type for column A.
WARNING: Failed to scan text length or time type for column B.
WARNING: Failed to scan text length or time type for column C.
WARNING: Failed to scan text length or time type for column D.
&lt;FONT color="#FF0000"&gt;ERROR: Open cursor: Cannot connect to the SharePoint site 'https://site/subsite'. Try again later.&lt;/FONT&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My understanding from this is that SAS was able to establish a connection to the Access DB (since it correctly identified those column names but failed to connect to the site). So I tried to use my Windows credentials as user/pass info. The same username and password is used throughout my PC, SAS EG application, SharePoint site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT OUT= outdata
DATATABLE='tablename'
DBMS=ACCESS REPLACE;
DATABASE="path to the access db starting with \\...";
USER= 'my username'; 
PASSWORD='my password'; 
USEDATE=YES;
SCANTIME=NO;
DBSASLABEL=NONE;

proc print;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: Connect: Cannot start your application. The workgroup information file is missing or opened exclusively by another user.
ERROR: Error in the LIBNAME statement.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;I do not have access to the folder in which my workgroup information file would be located but I am quite sure that file is not causing the issue (Guessing based on some of the other procedures that I followed and changes I made to the code or simply the user/pass information its expecting may be different). I have also changed the settings in my Access to address the other part of the error message and I am the only user of this Access file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="share user.png" style="width: 827px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53101i445905D6DBAA0C53/image-size/large?v=v2&amp;amp;px=999" role="button" title="share user.png" alt="share user.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC IMPORT DBMS=ACCESSCS DATATABLE='tablename'
     OUT=WORK.outtable REPLACE;
     DATABASE='full path starting with \\....';
	 USER= "my user"; 
 	 PASSWORD="my pass";
RUN;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: CLI open cursor error: [Microsoft][ODBC Microsoft Access Driver] Cannot connect to the SharePoint site 
       'https://site/subsite'. Try again later.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODBC:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I created ODBC (using user DSN as I don't have admin rights to create a System DSN). One of the reason I would have preferred to create the System DSN is mentioned in this article:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/troubleshoot/sql/connect/odbc-tool-displays-32-bit-64-bit" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/troubleshoot/sql/connect/odbc-tool-displays-32-bit-64-bit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And I encountered same problem mentioned, but the workaround did not make sense to me. However, I have tried to rename my ODBC DSN with an extension '_64' and got the same error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on this link:&amp;nbsp;&lt;A href="https://support.sas.com/techsup/technote/accessing-microsoft-sql-server-from-sas.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/techsup/technote/accessing-microsoft-sql-server-from-sas.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I decided to take advantage of not having to specify the connection information myself (using code). So I used the following code&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname odbcname odbc prompt;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver 
       specified&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;Since that did not work, I wanted to see of I can have those DSN info, User Info and Password info if I import the table using ODBC wizard which worked (the table was loaded in SAS). After the table was loaded, I went to properties and copied the information into my libname as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="properties.png" style="width: 655px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53104i9E2E3697E611CAFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="properties.png" alt="properties.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Try 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname odbcname odbc required=
     "Driver={Microsoft Access Driver (*.mdb, *.accdb)};
    DBQ=full path starting with \\...
;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;
Uid=admin;pwd=''";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code did not return an error. However, the Log shows that no information was stored in my libref.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: Libref odbcname was successfully assigned as follows: 
      Engine:        ODBC 
      Physical Name: &lt;/PRE&gt;&lt;P&gt;Try 3:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME ACCESS ODBC DSN='odbcname' user=username pw="my password";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver 
       specified&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Wizard Options:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I am using the import wizard:&lt;/P&gt;&lt;P&gt;If I select WORK as the destination folder, it gives me an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;WARNING: Failed to scan text length or time type for column A.
WARNING: Failed to scan text length or time type for column B.
WARNING: Failed to scan text length or time type for column C.
WARNING: Failed to scan text length or time type for column D.
&lt;FONT color="#FF0000"&gt;ERROR: Open cursor: Cannot connect to the SharePoint site 'https://site/subsite'. Try again later&lt;/FONT&gt;.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select SASHELP as the destination folder, it gives me an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;WARNING: Failed to scan text length or time type for column A.
WARNING: Failed to scan text length or time type for column B.
WARNING: Failed to scan text length or time type for column C.
WARNING: Failed to scan text length or time type for column D.
&lt;FONT color="#FF0000"&gt;ERROR: User does not have appropriate authorization level for library SASHELP.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In both cases, I have checked "Import the data using ...."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="import wizard checkbox.png" style="width: 573px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53102i42086CFACB5089FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="import wizard checkbox.png" alt="import wizard checkbox.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I left the boxes unchecked and simply clicked Finish, my data was imported in my 'Output Data' window. However, no code was generated.&lt;/P&gt;&lt;P&gt;[Part of the reason I was checking that box is to see where in my SAS/ACCESS to PC Files code I am making some mistake]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pass Through:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Tried to follow:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=sqlproc&amp;amp;docsetTarget=p00m0fdlbdu781n1jxsn4umlqyok.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=sqlproc&amp;amp;docsetTarget=p00m0fdlbdu781n1jxsn4umlqyok.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sql outobs=15;
   connect to ACCESS as ora2 (path='full path starting with \\....' user="user name" password="my password");
   select * from connection to ora2 (select * from "tablename");
   disconnect from ora2;
quit;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: Connect: Cannot start your application. The workgroup information file is missing or opened exclusively by another user.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAS PC FILES:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Finally, I tried with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;LIBNAME db PCFILES PATH='path to the file starting with //....' SERVER=localhost SSPI=yes ;
   proc datasets library=db;&lt;/PRE&gt;&lt;P&gt;It gave me an output(correctly identifying the tables in the database):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas pc file.png" style="width: 577px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53105i50371F082D31B7BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas pc file.png" alt="sas pc file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, whenever, I tried to run the below code for one of the table&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=db.tablename;
   run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Gave me the error:&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: CLI open cursor error: [Microsoft][ODBC Microsoft Access Driver] Cannot connect to the SharePoint site 
       'https://site/subsite'. Try again later.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;At this point, I am really not sure if there is any other way to import/ update this data. Is there any SharePoint related information that I should be providing in my code. If yes, what information is needed and how do I provide them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone kindly advise?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 06:31:02 GMT</pubDate>
    <dc:creator>bhuiyaas</dc:creator>
    <dc:date>2020-12-30T06:31:02Z</dc:date>
    <item>
      <title>Import/Update Access Database linked to a SharePoint List using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-Update-Access-Database-linked-to-a-SharePoint-List-using/m-p/708710#M217836</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import, update a table in Access database (64 bit) using SAS (SAS Enterprise Guide, Version: 7.12 (64 bit)). I have been trying to identify the problem and resolution for a few days now and based on all the searches I have done in the last few days, I think I have narrowed down the problem and looking for some help to resolve this last bit. Although there are similar problems posted and resolutions discussed, none of them worked for me or the problem I have (or the solution I am looking for) is slightly different from those.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also new to SAS as well as SharePoint so it is possible that I am making a mistake out of my limited knowledge on SAS coding or SAS/ SharePoint architecture in general.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is an overview of the systems that are connected to this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I have a SharePoint site. I have been given full permission to a particular page where I created a List that I am trying to work with.&lt;/P&gt;&lt;P&gt;2. I have created an access database and established link between the Access and SharePoint List. So, if I enter a value in the (Access) table, the List gets updated instantly, so no issue with regards to the connection (I think).&lt;/P&gt;&lt;P&gt;3. I have SAS EG that can connect (create, update, import etc. ) with other Access DB files (not linked with SharePoint) located in the same folder.&lt;/P&gt;&lt;P&gt;The Access DB file is located in a Network Drive location mapped as my 'Documents' folder.(Meaning, in window explorer, if I click on the 'Documents', I am actually referring to the location in the shared drive so everything I have in my pc have a back up in that drive automatically)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The things that I have tried so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC HTTP:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Initially, I tried with the PROC HTTP procedure (and was not considering communicating via ACCESS) only to learn afterwards that my company wont allow SAS communication through HTTP protocol because of security. So this is not an option at the moment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PROC IMPORT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Next I tried with the PROC IMPORT procedure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC IMPORT OUT= outdata
DATATABLE='tablename'
DBMS=ACCESS REPLACE;
DATABASE="full path to the access file starting with \\...";
USER= admin; 
PASSWORD=''; 
USEDATE=YES;
SCANTIME=NO;
DBSASLABEL=NONE;

proc print;
RUN;&lt;/PRE&gt;&lt;P&gt;Error received (with warnings for all of the columns in the table).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: Failed to scan text length or time type for column A.
WARNING: Failed to scan text length or time type for column B.
WARNING: Failed to scan text length or time type for column C.
WARNING: Failed to scan text length or time type for column D.
&lt;FONT color="#FF0000"&gt;ERROR: Open cursor: Cannot connect to the SharePoint site 'https://site/subsite'. Try again later.&lt;/FONT&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My understanding from this is that SAS was able to establish a connection to the Access DB (since it correctly identified those column names but failed to connect to the site). So I tried to use my Windows credentials as user/pass info. The same username and password is used throughout my PC, SAS EG application, SharePoint site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT OUT= outdata
DATATABLE='tablename'
DBMS=ACCESS REPLACE;
DATABASE="path to the access db starting with \\...";
USER= 'my username'; 
PASSWORD='my password'; 
USEDATE=YES;
SCANTIME=NO;
DBSASLABEL=NONE;

proc print;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: Connect: Cannot start your application. The workgroup information file is missing or opened exclusively by another user.
ERROR: Error in the LIBNAME statement.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;I do not have access to the folder in which my workgroup information file would be located but I am quite sure that file is not causing the issue (Guessing based on some of the other procedures that I followed and changes I made to the code or simply the user/pass information its expecting may be different). I have also changed the settings in my Access to address the other part of the error message and I am the only user of this Access file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="share user.png" style="width: 827px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53101i445905D6DBAA0C53/image-size/large?v=v2&amp;amp;px=999" role="button" title="share user.png" alt="share user.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC IMPORT DBMS=ACCESSCS DATATABLE='tablename'
     OUT=WORK.outtable REPLACE;
     DATABASE='full path starting with \\....';
	 USER= "my user"; 
 	 PASSWORD="my pass";
RUN;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: CLI open cursor error: [Microsoft][ODBC Microsoft Access Driver] Cannot connect to the SharePoint site 
       'https://site/subsite'. Try again later.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ODBC:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I created ODBC (using user DSN as I don't have admin rights to create a System DSN). One of the reason I would have preferred to create the System DSN is mentioned in this article:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/troubleshoot/sql/connect/odbc-tool-displays-32-bit-64-bit" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/troubleshoot/sql/connect/odbc-tool-displays-32-bit-64-bit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And I encountered same problem mentioned, but the workaround did not make sense to me. However, I have tried to rename my ODBC DSN with an extension '_64' and got the same error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on this link:&amp;nbsp;&lt;A href="https://support.sas.com/techsup/technote/accessing-microsoft-sql-server-from-sas.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/techsup/technote/accessing-microsoft-sql-server-from-sas.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I decided to take advantage of not having to specify the connection information myself (using code). So I used the following code&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname odbcname odbc prompt;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver 
       specified&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;Since that did not work, I wanted to see of I can have those DSN info, User Info and Password info if I import the table using ODBC wizard which worked (the table was loaded in SAS). After the table was loaded, I went to properties and copied the information into my libname as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="properties.png" style="width: 655px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53104i9E2E3697E611CAFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="properties.png" alt="properties.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Try 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname odbcname odbc required=
     "Driver={Microsoft Access Driver (*.mdb, *.accdb)};
    DBQ=full path starting with \\...
;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;
Uid=admin;pwd=''";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code did not return an error. However, the Log shows that no information was stored in my libref.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NOTE: Libref odbcname was successfully assigned as follows: 
      Engine:        ODBC 
      Physical Name: &lt;/PRE&gt;&lt;P&gt;Try 3:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME ACCESS ODBC DSN='odbcname' user=username pw="my password";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver 
       specified&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Wizard Options:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I am using the import wizard:&lt;/P&gt;&lt;P&gt;If I select WORK as the destination folder, it gives me an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;WARNING: Failed to scan text length or time type for column A.
WARNING: Failed to scan text length or time type for column B.
WARNING: Failed to scan text length or time type for column C.
WARNING: Failed to scan text length or time type for column D.
&lt;FONT color="#FF0000"&gt;ERROR: Open cursor: Cannot connect to the SharePoint site 'https://site/subsite'. Try again later&lt;/FONT&gt;.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select SASHELP as the destination folder, it gives me an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;WARNING: Failed to scan text length or time type for column A.
WARNING: Failed to scan text length or time type for column B.
WARNING: Failed to scan text length or time type for column C.
WARNING: Failed to scan text length or time type for column D.
&lt;FONT color="#FF0000"&gt;ERROR: User does not have appropriate authorization level for library SASHELP.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In both cases, I have checked "Import the data using ...."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="import wizard checkbox.png" style="width: 573px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53102i42086CFACB5089FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="import wizard checkbox.png" alt="import wizard checkbox.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I left the boxes unchecked and simply clicked Finish, my data was imported in my 'Output Data' window. However, no code was generated.&lt;/P&gt;&lt;P&gt;[Part of the reason I was checking that box is to see where in my SAS/ACCESS to PC Files code I am making some mistake]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pass Through:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Tried to follow:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=sqlproc&amp;amp;docsetTarget=p00m0fdlbdu781n1jxsn4umlqyok.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=sqlproc&amp;amp;docsetTarget=p00m0fdlbdu781n1jxsn4umlqyok.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sql outobs=15;
   connect to ACCESS as ora2 (path='full path starting with \\....' user="user name" password="my password");
   select * from connection to ora2 (select * from "tablename");
   disconnect from ora2;
quit;&lt;/PRE&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: Connect: Cannot start your application. The workgroup information file is missing or opened exclusively by another user.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAS PC FILES:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Finally, I tried with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;LIBNAME db PCFILES PATH='path to the file starting with //....' SERVER=localhost SSPI=yes ;
   proc datasets library=db;&lt;/PRE&gt;&lt;P&gt;It gave me an output(correctly identifying the tables in the database):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas pc file.png" style="width: 577px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/53105i50371F082D31B7BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas pc file.png" alt="sas pc file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, whenever, I tried to run the below code for one of the table&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=db.tablename;
   run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Gave me the error:&lt;/P&gt;&lt;PRE&gt;&lt;FONT color="#FF0000"&gt;ERROR: CLI open cursor error: [Microsoft][ODBC Microsoft Access Driver] Cannot connect to the SharePoint site 
       'https://site/subsite'. Try again later.&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;At this point, I am really not sure if there is any other way to import/ update this data. Is there any SharePoint related information that I should be providing in my code. If yes, what information is needed and how do I provide them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone kindly advise?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 06:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-Update-Access-Database-linked-to-a-SharePoint-List-using/m-p/708710#M217836</guid>
      <dc:creator>bhuiyaas</dc:creator>
      <dc:date>2020-12-30T06:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Import/Update Access Database linked to a SharePoint List using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-Update-Access-Database-linked-to-a-SharePoint-List-using/m-p/709849#M218388</link>
      <description>&lt;P&gt;Congratulations on a good research and well documented post.&lt;/P&gt;
&lt;P&gt;It seems that reading the Access database triggers an http access to SharePoint. When you access the database from your PC, this link to SharePoint is not an issue. When you access the database from SAS, the link cannot work due to the restrictions placed on the SAS server.&lt;/P&gt;
&lt;P&gt;Is that a fair description?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 08:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-Update-Access-Database-linked-to-a-SharePoint-List-using/m-p/709849#M218388</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-01-07T08:18:20Z</dc:date>
    </item>
  </channel>
</rss>

