<?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 an entire library to access in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/exporting-an-entire-library-to-access/m-p/847#M403</link>
    <description>This question is perhaps best answered by Technical Support. You can open a track using&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/contact/submit_emits2.html" target="_blank"&gt;http://support.sas.com/techsup/contact/submit_emits2.html&lt;/A&gt; .</description>
    <pubDate>Wed, 14 Jun 2006 19:27:49 GMT</pubDate>
    <dc:creator>Tim_SAS</dc:creator>
    <dc:date>2006-06-14T19:27:49Z</dc:date>
    <item>
      <title>exporting an entire library to access</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/exporting-an-entire-library-to-access/m-p/846#M402</link>
      <description>Is there any simple code which will export an entire sas library to an MS ACCESS database, with each SAS Dataset tranlated to a table within the database?  I am hoping that I am just failing to find a simple option.  I see the PROC EXPORT code to convert one data set, but I will have over 1,000 datasets withing one SAS library to convert.  Thanks, John</description>
      <pubDate>Wed, 14 Jun 2006 18:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/exporting-an-entire-library-to-access/m-p/846#M402</guid>
      <dc:creator>JohnH</dc:creator>
      <dc:date>2006-06-14T18:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: exporting an entire library to access</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/exporting-an-entire-library-to-access/m-p/847#M403</link>
      <description>This question is perhaps best answered by Technical Support. You can open a track using&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/contact/submit_emits2.html" target="_blank"&gt;http://support.sas.com/techsup/contact/submit_emits2.html&lt;/A&gt; .</description>
      <pubDate>Wed, 14 Jun 2006 19:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/exporting-an-entire-library-to-access/m-p/847#M403</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2006-06-14T19:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: exporting an entire library to access</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/exporting-an-entire-library-to-access/m-p/848#M404</link>
      <description>Although I've never encountered such an option, I would suggest quite simple workarounds using macro loops (or call execute) and the use of the SASHELP.VTABLE view (or proc contents).&lt;BR /&gt;
Something like :&lt;BR /&gt;
&lt;BR /&gt;
%MACRO move2access (library, outDB) ;&lt;BR /&gt;
  DATA _NULL_ ;&lt;BR /&gt;
    SET sashelp.vtable (WHERE = (UPCASE(libname) = UPCASE("&amp;amp;library"))) ;&lt;BR /&gt;
    nDataSets + 1 ;&lt;BR /&gt;
    CALL SYMPUT (COMPRESS("DSname"!!nDataSets), memname) ;&lt;BR /&gt;
    CALL SYMPUT ("DSn", nDataSets) ;&lt;BR /&gt;
  RUN ;&lt;BR /&gt;
  %DO i = 1 %TO &amp;amp;DSn ;&lt;BR /&gt;
    PROC EXPORT DATA = &amp;amp;&amp;amp;library..&amp;amp;&amp;amp;DSname&amp;amp;i&lt;BR /&gt;
                OUTTABLE = "&amp;amp;&amp;amp;DSname&amp;amp;i"&lt;BR /&gt;
                DBMS = ACCESS REPLACE ;&lt;BR /&gt;
      DATABASE = "&amp;amp;outDB" ;&lt;BR /&gt;
    RUN ;&lt;BR /&gt;
  %END ;&lt;BR /&gt;
%MEND move2access ;&lt;BR /&gt;
&lt;BR /&gt;
And call it like :&lt;BR /&gt;
&lt;BR /&gt;
%move2access (sasuser, c:\sasuser.db) ;&lt;BR /&gt;
&lt;BR /&gt;
I hope it fits.&lt;BR /&gt;
&lt;BR /&gt;
Olivier Decourt&lt;BR /&gt;
Training &amp;amp; consulting on SAS software and statistical topics&lt;BR /&gt;
France</description>
      <pubDate>Thu, 29 Jun 2006 14:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/exporting-an-entire-library-to-access/m-p/848#M404</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2006-06-29T14:49:30Z</dc:date>
    </item>
  </channel>
</rss>

