<?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 from SAS to Access in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346190#M79791</link>
    <description>&lt;P&gt;Export to a common data transfer format like csv and read that into access. Using a textual format is the least painful way for such undertakings, IMO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 15:49:20 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-03-31T15:49:20Z</dc:date>
    <item>
      <title>Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346186#M79788</link>
      <description>&lt;P&gt;Good afternoon all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS Enterprise 5.1 and I have been running queries out of it for a few months now and downloading the resulting data into an excel sheet using the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROC EXPORT DBMS = EXCELCS&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Data = Results&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILE = 'C:\Results\SAS Results.xlsb'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT = 9621;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SERVER = &amp;amp;_mymachine;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately my last result set exceeds 3 mil lines and I cannot get it to export to excel even though I use the "Export As A Step In Project" and I am using excel 2016. With such a large dataset, can it be directly exported into Access?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in adavance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:43:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346186#M79788</guid>
      <dc:creator>wheddingsjr</dc:creator>
      <dc:date>2017-03-31T15:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346187#M79789</link>
      <description>&lt;P&gt;You could create a CSV or other delimited file, but then there's the question of what will open it.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346187#M79789</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-03-31T15:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346190#M79791</link>
      <description>&lt;P&gt;Export to a common data transfer format like csv and read that into access. Using a textual format is the least painful way for such undertakings, IMO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:49:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346190#M79791</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-31T15:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346240#M79810</link>
      <description>Thanks Collinelliot, I will give that a try</description>
      <pubDate>Fri, 31 Mar 2017 17:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346240#M79810</guid>
      <dc:creator>wheddingsjr</dc:creator>
      <dc:date>2017-03-31T17:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346244#M79812</link>
      <description>&lt;P&gt;Thanks KurtBremser&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That was the suggestion of another person as well. I will give that a shot and see what happens. The only other alternative is to break the year up into quarters or 2 month chunks for smaller data sets then merge them later (which I was desperately trying to avoid).&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 17:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346244#M79812</guid>
      <dc:creator>wheddingsjr</dc:creator>
      <dc:date>2017-03-31T17:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346302#M79832</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;9 minutes for 2.9 million skinny three numeric variable dbload

I don't think there are any 'bulkload' options ot turning off logging for MS access

Too lazy to load char variables because I need to set lenghts?


data threemm;
 set sashelp.class;
 do i=1 to 150000;
   output;
 end;
run;quit;

libname mdb "d:/mdb/demo.accdb"  ;
data mdb.threemm ;
  set threemm(keep=age height weight);
run;quit;
libname mdb clear;


2096  libname mdb "d:/mdb/demo.accdb"  ;
NOTE: Libref MDB was successfully assigned as follows:
      Engine:        ACCESS
      Physical Name: d:/mdb/demo.accdb
2097  data mdb.threemm ;
2098    set threemm(keep=age height weight);
2099  run;

NOTE: There were 2850000 observations read from the data set WORK.THREEMM.
NOTE: The data set MDB.threemm has 2850000 observations and 3 variables.
NOTE: DATA statement used (Total process time):
      real time           9:21.06
      user cpu time       8:11.17
      system cpu time     1:08.43
      memory              2189.43k
      OS Memory           16628.00k
      Timestamp           03/31/2017 03:18:28 PM
      Step Count                        354  Switch Count  10


2099!     quit;
2100  libname mdb clear;
NOTE: Libref MDB has been deassigned.




&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Mar 2017 19:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346302#M79832</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-03-31T19:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346315#M79840</link>
      <description>&lt;P&gt;whoaa...thats wayyy too technical for me to understand..lol...but I do know that I tried Collinelliot's and KurtBremsner's suggestion and tried to make a CVS. Unfortunately it was even too big for that. I think I may have no choice but to do them a few months at a time. Mind you I have over 3.5 mil lines and 132 columns. Its a HUGE set of data...but I appreciate all the help.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 19:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346315#M79840</guid>
      <dc:creator>wheddingsjr</dc:creator>
      <dc:date>2017-03-31T19:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346327#M79849</link>
      <description>&lt;P&gt;What do you plan to do with the data once you have it in the cheap toy software? In my mind, you need to do much more work in SAS so you have pre-analyzed data that fits into the maximum structures of office software.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 20:07:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346327#M79849</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-31T20:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346331#M79851</link>
      <description>&lt;P&gt;KurtBresmer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within the data are two subsets. The idea is to determine, based on certain fields, which lines appear in both subsets and single those lines out.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 20:19:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346331#M79851</guid>
      <dc:creator>wheddingsjr</dc:creator>
      <dc:date>2017-03-31T20:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346338#M79855</link>
      <description>&lt;P&gt;I'd be VERY surprised if that issue could not be solved here quicker than the import into Office.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 21:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346338#M79855</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-03-31T21:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346345#M79860</link>
      <description>&lt;P&gt;I agree, but I am not all that versed in SAS (I just started using it a few months ago). I was going to use the code below but i have used it before and though it worked it wasnt as thorough as I had hoped. I ended up having to load the data into Access and found a ton of data that should have been included but was not for whatever reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;BR /&gt;CREATE Table results as&lt;BR /&gt;Select *&lt;BR /&gt;from step2&lt;BR /&gt;WHERE MEMNO&lt;BR /&gt;IN SELECT MEMNO&lt;BR /&gt;FROM RESULTS AS TEMP&lt;BR /&gt;GROUP BY MEMNO, BEGDATE&lt;BR /&gt;HAVING Count(*)&amp;gt;1&lt;BR /&gt;AND BEGDATE = RESULTS.BEGDATE&lt;BR /&gt;ORDER BY RESULTS.MEMNO, RESULTS.BEGDATE;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 21:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/346345#M79860</guid>
      <dc:creator>wheddingsjr</dc:creator>
      <dc:date>2017-03-31T21:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/347622#M80340</link>
      <description>&lt;P&gt;First of all, I would never use the same table as input and output of a SQL step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, I'd run the inner select for the where condition in a separate step to see if it yields a correct result in terms of the included MEMNO's.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As it is, the SQL you provided lacks brackets to correctly identify the extent/scope of the sub-select; this may cause your problems, as the conditions may be treated incorrectly by the SQL interpreter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table lookup as
  select memno, begdate
  from results
  having count(*) &amp;gt; 1
  group by memno, begdate
;
create table endresult as
  select a.*
  from results as a, lookup as b
  where a.memno = b.memno and a.begdate = b.begdate
  order by a.memno, a.begdate
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Apr 2017 08:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/347622#M80340</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-04-06T08:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting from SAS to Access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/347933#M80496</link>
      <description>Thanks KurtBremser, I changed a few things in my statement to alter actual table names and incorrectly copied and pasted it in in my example, so you are right, I was not intending to use the same table as both input and output, my apologies. I did however try your suggestion and it worked for me. Thanks a lot, it really saved me a lot of work.</description>
      <pubDate>Thu, 06 Apr 2017 21:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exporting-from-SAS-to-Access/m-p/347933#M80496</guid>
      <dc:creator>wheddingsjr</dc:creator>
      <dc:date>2017-04-06T21:01:30Z</dc:date>
    </item>
  </channel>
</rss>

