<?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: Importing all access database tables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452654#M114260</link>
    <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt; the age of the paper (2005) makes me think some of the statements in there may no longer be true, regarding what's possible in SAS today.</description>
    <pubDate>Mon, 09 Apr 2018 20:41:54 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-04-09T20:41:54Z</dc:date>
    <item>
      <title>Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452640#M114253</link>
      <description>&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to use SAS to analyze data from an access database and in need to&amp;nbsp;import&amp;nbsp;all the tables without using proc import for each single table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any Helpful tips of what SAS&amp;nbsp;syntax to use for that, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:17:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452640#M114253</guid>
      <dc:creator>Treeva</dc:creator>
      <dc:date>2018-04-09T20:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452641#M114254</link>
      <description>&lt;P&gt;Assign a libname and then PROC COPY?&lt;/P&gt;
&lt;P&gt;This copies everything into the WORK library, you may want a permanent library. I'm not 100% sure that's the correct libname format, may need modifications.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myDB access 'path to access file';

proc copy in=myDB out=work;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/77153"&gt;@Treeva&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Dear Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to use SAS to analyze data from an access database and in need to&amp;nbsp;import&amp;nbsp;all the tables without using proc import for each single table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any Helpful tips of what SAS&amp;nbsp;syntax to use for that, please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really appreciated.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452641#M114254</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-09T20:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452642#M114255</link>
      <description>Sorry, I assumed you were using BASE SAS, not SAS DI, are you using SAS DI? If so, I'll move this post back to data management.</description>
      <pubDate>Mon, 09 Apr 2018 20:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452642#M114255</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-09T20:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452644#M114256</link>
      <description>&lt;P&gt;Thanks so much Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes I am using Base SAS, not SAS DI. I've just learned that so my apologies for not making this differentiation ahead while posting my question!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452644#M114256</guid>
      <dc:creator>Treeva</dc:creator>
      <dc:date>2018-04-09T20:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452650#M114257</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried the code and it gave me the following errors:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Connect: Class not registered&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe that the&amp;nbsp;&lt;SPAN&gt;bitnesses of SAS and Microsoft Office don't match. How can I modify your provided code then, please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452650#M114257</guid>
      <dc:creator>Treeva</dc:creator>
      <dc:date>2018-04-09T20:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452651#M114258</link>
      <description>&lt;P&gt;It's the libname statement.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Do you have PCFILES installed and running? You need that if you have different bits.&lt;/P&gt;
&lt;P&gt;I think it's like this, but you need the proper file name and extension:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myDB pcfiles path=" path to access db.mcaddb";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452651#M114258</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-09T20:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452653#M114259</link>
      <description>&lt;P&gt;Check this paper&amp;nbsp;&lt;A href="https://www.lexjansen.com/pharmasug/2005/CodersCorner/cc12.pdf" target="_self"&gt;Data Transfer from Microsoft Access to SAS Made Easy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452653#M114259</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-04-09T20:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452654#M114260</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt; the age of the paper (2005) makes me think some of the statements in there may no longer be true, regarding what's possible in SAS today.</description>
      <pubDate>Mon, 09 Apr 2018 20:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452654#M114260</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-09T20:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452655#M114261</link>
      <description>&lt;P&gt;Thanks Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I tried this and also not working.&amp;nbsp;It is definitely the SAS PC Files server issue.&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;</description>
      <pubDate>Mon, 09 Apr 2018 20:45:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452655#M114261</guid>
      <dc:creator>Treeva</dc:creator>
      <dc:date>2018-04-09T20:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452657#M114262</link>
      <description>&lt;P&gt;Try the ODBC method outlined in the paper linked to by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt;, assuming you have a license for ODBC driver.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can check your version/license with the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status; *what is installed;
proc setinit;*what is licensed;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Apr 2018 20:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452657#M114262</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-09T20:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452659#M114263</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;Agree, I'm excited to test this approach with current version of SAS as well as Access. Not sure if ti's really possible or not but will give a try.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 21:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452659#M114263</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-04-09T21:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452664#M114264</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname out pcfiles path="C:\_LOCALdata\Issues Web Database1.accdb"; 

proc copy in=out out=work;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This worked for me, SAS 9.4 TS1M3 (64 bit), MS Office is 32 bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;P&gt;400 libname out pcfiles path="C:\_LOCALdata\Issues Web Database1.accdb";&lt;BR /&gt;NOTE: Libref OUT was successfully assigned as follows:&lt;BR /&gt; Engine: PCFILES&lt;BR /&gt; Physical Name: C:\_LOCALdata\Issues Web Database1.accdb&lt;/P&gt;
&lt;P&gt;401 proc copy in=out out=work;&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;BR /&gt;402 run;&lt;/P&gt;
&lt;P&gt;NOTE: Copying OUT.Comments to WORK.COMMENTS (memtype=DATA).&lt;BR /&gt;NOTE: BUFSIZE is not cloned when copying across different engines.&lt;BR /&gt; System Option for BUFSIZE was used.&lt;BR /&gt;NOTE: There were 1 observations read from the data set OUT.Comments.&lt;BR /&gt;NOTE: The data set WORK.COMMENTS has 1 observations and 5 variables.&lt;BR /&gt;NOTE: Copying OUT.CommentsExtended to WORK.COMMENTSEXTENDED (memtype=DATA).&lt;BR /&gt;NOTE: BUFSIZE is not cloned when copying across different engines.&lt;BR /&gt; System Option for BUFSIZE was used.&lt;BR /&gt;NOTE: There were 1 observations read from the data set&lt;BR /&gt; OUT.CommentsExtended.&lt;BR /&gt;NOTE: The data set WORK.COMMENTSEXTENDED has 1 observations and 6&lt;BR /&gt; variables.&lt;BR /&gt;NOTE: Copying OUT.Issues to WORK.ISSUES (memtype=DATA).&lt;BR /&gt;NOTE: BUFSIZE is not cloned when copying across different engines.&lt;BR /&gt; System Option for BUFSIZE was used.&lt;BR /&gt;NOTE: There were 3 observations read from the data set OUT.Issues.&lt;BR /&gt;NOTE: The data set WORK.ISSUES has 3 observations and 15 variables.&lt;BR /&gt;NOTE: Copying OUT.IssuesClosed to WORK.ISSUESCLOSED (memtype=DATA).&lt;BR /&gt;NOTE: BUFSIZE is not cloned when copying across different engines.&lt;BR /&gt; System Option for BUFSIZE was used.&lt;BR /&gt;NOTE: There were 0 observations read from the data set OUT.IssuesClosed.&lt;BR /&gt;NOTE: The data set WORK.ISSUESCLOSED has 0 observations and 18 variables.&lt;BR /&gt;NOTE: Copying OUT.IssuesExtended to WORK.ISSUESEXTENDED (memtype=DATA).&lt;BR /&gt;NOTE: BUFSIZE is not cloned when copying across different engines.&lt;BR /&gt; System Option for BUFSIZE was used.&lt;BR /&gt;NOTE: There were 3 observations read from the data set OUT.IssuesExtended.&lt;BR /&gt;NOTE: The data set WORK.ISSUESEXTENDED has 3 observations and 18 variables.&lt;BR /&gt;NOTE: Copying OUT.IssuesOpen to WORK.ISSUESOPEN (memtype=DATA).&lt;BR /&gt;NOTE: BUFSIZE is not cloned when copying across different engines.&lt;BR /&gt; System Option for BUFSIZE was used.&lt;BR /&gt;NOTE: There were 3 observations read from the data set OUT.IssuesOpen.&lt;BR /&gt;NOTE: The data set WORK.ISSUESOPEN has 3 observations and 18 variables.&lt;BR /&gt;NOTE: Copying OUT.IssuesRelated to WORK.ISSUESRELATED (memtype=DATA).&lt;BR /&gt;NOTE: BUFSIZE is not cloned when copying across different engines.&lt;BR /&gt; System Option for BUFSIZE was used.&lt;BR /&gt;NOTE: There were 0 observations read from the data set OUT.IssuesRelated.&lt;BR /&gt;NOTE: The data set WORK.ISSUESRELATED has 0 observations and 4 variables.&lt;BR /&gt;NOTE: Copying OUT.RelatedIssues to WORK.RELATEDISSUES (memtype=DATA).&lt;BR /&gt;NOTE: BUFSIZE is not cloned when copying across different engines.&lt;BR /&gt; System Option for BUFSIZE was used.&lt;BR /&gt;NOTE: There were 0 observations read from the data set OUT.RelatedIssues.&lt;BR /&gt;NOTE: The data set WORK.RELATEDISSUES has 0 observations and 3 variables.&lt;BR /&gt;NOTE: Copying OUT.Users to WORK.USERS (memtype=DATA).&lt;BR /&gt;NOTE: BUFSIZE is not cloned when copying across different engines.&lt;BR /&gt; System Option for BUFSIZE was used.&lt;BR /&gt;NOTE: There were 2 observations read from the data set OUT.Users.&lt;BR /&gt;NOTE: The data set WORK.USERS has 2 observations and 4 variables.&lt;BR /&gt;NOTE: PROCEDURE COPY used (Total process time):&lt;BR /&gt; real time 1.54 seconds&lt;BR /&gt; cpu time 0.34 seconds&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 21:14:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452664#M114264</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-09T21:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452670#M114265</link>
      <description>Hi Reeza, you must be having PCFILES installed on your PC right ? .. the 'out' in your libname is just a library name right ?</description>
      <pubDate>Mon, 09 Apr 2018 21:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452670#M114265</guid>
      <dc:creator>nayakig</dc:creator>
      <dc:date>2018-04-09T21:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452676#M114267</link>
      <description>&lt;P&gt;Yes, I have PCFILES, and yes OUT&amp;nbsp;in the libname statement can be replaced by any valid SAS library name (8 characters, starts with letters, no spaces/specialchars except _).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think ODBC may be the approach you need to take, sadly a bit convoluted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;First go to your control panel&amp;gt; ODBC, set up a user connection to your Access file. Then&amp;nbsp; your libname will be along the lines of:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname out ODBC dsn=your_dsn_name;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Try this one as well first though:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname out accessCS 'path to your access filse';&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Apr 2018 22:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/452676#M114267</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-09T22:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/453931#M114746</link>
      <description>&lt;P&gt;Thanks so much&amp;nbsp;&lt;SPAN&gt;Suryakiran,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The paper has valuable information though it is somehow outdated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 14:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/453931#M114746</guid>
      <dc:creator>Treeva</dc:creator>
      <dc:date>2018-04-13T14:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Importing all access database tables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/454018#M114761</link>
      <description>&lt;P&gt;Thanks so much, Reeza&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this out and it worked! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Treeva&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Apr 2018 18:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-all-access-database-tables/m-p/454018#M114761</guid>
      <dc:creator>Treeva</dc:creator>
      <dc:date>2018-04-13T18:23:54Z</dc:date>
    </item>
  </channel>
</rss>

