<?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: Exporting SAS dataset to MS-Access in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/898865#M11128</link>
    <description>&lt;P&gt;You need the SAS product SAS/ACCESS to PC File Formats installed and licensed to export to MS Access. You can check this by running this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;
run;

proc setinit;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also if your SAS sessions run on Unix you will need to use the ACCESSCS engine (not ACCESS) and have the SAS PC Files Server running.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 00:35:29 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-10-17T00:35:29Z</dc:date>
    <item>
      <title>Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/898864#M11127</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I've read other topics about this but what component in SAS studio should I be looking for to ensure I have the one to export to MS-Access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code is below and originally, I got an error message about not having the correct server but now I get the error message "&lt;SPAN&gt;ERROR: DBMS type ACCESS not valid for export".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT DATA = Main
OUTTABLE='Main'
DBMS=ACCESS REPLACE;
DATABASE= "\\sas-analytics-pro\SunshineCo\DAD.ACCDB";
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;How can I export directly to MS-Access as a table?&amp;nbsp; &amp;nbsp;Any assistance greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Shelley&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 00:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/898864#M11127</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2023-10-17T00:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/898865#M11128</link>
      <description>&lt;P&gt;You need the SAS product SAS/ACCESS to PC File Formats installed and licensed to export to MS Access. You can check this by running this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;
run;

proc setinit;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Also if your SAS sessions run on Unix you will need to use the ACCESSCS engine (not ACCESS) and have the SAS PC Files Server running.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 00:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/898865#M11128</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-10-17T00:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/898867#M11129</link>
      <description>Thank you!  I have that component so now I am very confused as to why my code doesn't work.  I found that if I added CS to the DBMS i.e. AccessCS then that is when I get the error message "ERROR: Server Name is invalid or missing.".</description>
      <pubDate>Tue, 17 Oct 2023 00:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/898867#M11129</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2023-10-17T00:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/898870#M11130</link>
      <description>&lt;P&gt;SAS Studio is your SAS client that lets you execute code on a SAS server. Your SAS server needs access to your MS Access database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First thing to test is the access to the folder. Does below work?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname test '\\sas-analytics-pro\SunshineCo';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If above works: Under which OS does your SAS server execute? Windows or Unix/Linux?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run below and share the output from the SAS log with us.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;=SYSHOSTINFOLONG;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 02:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/898870#M11130</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-10-17T02:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/898980#M11131</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for responding.&amp;nbsp; &amp;nbsp;Sorry, the libname for test that actually worked was:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname test '/data/Sunshine/Excel';&lt;/PRE&gt;
&lt;P&gt;Below is the result when I ran the code you provided:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SYSHOSTINFOLONG=Linux LIN X64 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 Red Hat Enterprise Linux&lt;/P&gt;
&lt;DIV class="sasSource"&gt;release 8.8 (Ootpa)&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 17:40:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/898980#M11131</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2023-10-17T17:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899044#M11132</link>
      <description>&lt;P&gt;Your SAS executes under Linux where there aren't any libraries/dll's that would allow for a direct connection to MS Access. You need for this reason a SAS PC File server installed and configured on the Windows side.&amp;nbsp;&lt;A href="https://documentation.sas.com/api/collections/pgmsascdc/9.4_3.5/docsets/pcfsicg/content/pcfsicg.pdf?locale=en" target="_self"&gt;SAS 9.4 PC Files Server: Installation and Configuration Guide&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SAS PC Files Server is an application that receives client requests to access data files that are specific to Microsoft Office, such as Microsoft Excel and Microsoft Access.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In below picture copied from &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/pcfsicg/p1cgxir4if7ck1n1fm8xdl12wjzz.htm" target="_self"&gt;here&lt;/A&gt; your SAS session is the client.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1697594045460.png" style="width: 356px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/88925i6C974B26E0708DBF/image-dimensions/356x507?v=v2" width="356" height="507" role="button" title="Patrick_0-1697594045460.png" alt="Patrick_0-1697594045460.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's a bit confusing that your path ends with folder Excel and not Access but I guess that's just some sub-optimal naming and doesn't mean that you're actually dealing with .xlsx which could get accessed directly.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 01:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899044#M11132</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-10-18T01:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899155#M11133</link>
      <description>&lt;P&gt;Thank you so much for this!&amp;nbsp; And you are correct, the "Excel" name was an incorrectly named folder that I"m using for testing.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 16:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899155#M11133</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2023-10-18T16:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899162#M11134</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for all the questions but I commented that I had the correct component for PC Files.&amp;nbsp; And the document you linked to was for SAS 9.42 and I am using SAS via Viya/SAS studio.&amp;nbsp; So is your response still able to explain the issues I'm having?&amp;nbsp; &amp;nbsp;How would my code change if I had a server for the Access database?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shelley&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 17:34:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899162#M11134</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2023-10-18T17:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899164#M11135</link>
      <description>&lt;P&gt;What version of Viya are you using? &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_043/pgmsaswlcm/home.htm?fromDefault=" target="_blank" rel="noopener"&gt;Viya 4&lt;/A&gt; which comes in monthly versions or the earlier Viya 3? It appears that the SAS PC Files Server is also used in SAS Viya and uses the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_043/acpcref/n1qk7lv0f535qkn1mydookwetyrp.htm" target="_blank" rel="noopener"&gt;PCFILES LIBNAME engine&lt;/A&gt;. I suggest it would be best to discuss your requirements with your SAS administrator as setting up the&amp;nbsp;PC Files Server is really an admin task.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 19:07:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899164#M11135</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-10-18T19:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899176#M11136</link>
      <description>&lt;P&gt;I assume the most recent version of Viya since it was only recently installed.&amp;nbsp; I don't have a lot of support with setting this up so I am trying to do it myself and obviously don't have the knowledge to do so.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for trying.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 21:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899176#M11136</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2023-10-18T21:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899183#M11137</link>
      <description>&lt;P&gt;Without knowing your Viya architecture, it is most unlikely you will be able to set this up yourself. There will most likely need to be Viya server changes made to communicate with the SAS PC Files Server application. BTW this needs to be installed on a Windows computer. That could even be your PC if you are the only one using it, but more typically it would be on a Windows server accessible from your SAS Viya linux compute server. Also the Access files to be read or created must be accessible from&amp;nbsp;the computer SAS PC Files Server is installed on.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 22:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899183#M11137</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-10-18T22:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899193#M11138</link>
      <description>&lt;P&gt;The most simple way to transport data is the use of text files. Export from SAS with a DATA step or PROC EXPORT to a format readable by Access, copy the file to where Access runs, and import it there.&lt;/P&gt;
&lt;P&gt;Then there's no need to set up a dedicated PC Files Server.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 05:42:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899193#M11138</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-10-19T05:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS-Access</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899389#M11139</link>
      <description>&lt;P&gt;Thank you, Kurt, but I have ++ tables to export to Access and it really would be better if I could export directly.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 14:03:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Exporting-SAS-dataset-to-MS-Access/m-p/899389#M11139</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2023-10-20T14:03:09Z</dc:date>
    </item>
  </channel>
</rss>

