<?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 Append to Microsoft Access database in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Append-to-Microsoft-Access-database/m-p/2639#M131</link>
    <description>How do I append to an access database?  Do I need all variables in my SAS data set or I can append to the Access table with just some of them? &lt;BR /&gt;
&lt;BR /&gt;
I tried this, but SAS didn't like my syntax.  &lt;BR /&gt;
&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
connect to odbc (dsn="CBR Tracker");&lt;BR /&gt;
execute(insert * from to_tracking into Tbl_entry1) by odbc;&lt;BR /&gt;
disconnect from odbc;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
    <pubDate>Tue, 27 Mar 2007 15:37:49 GMT</pubDate>
    <dc:creator>Chip</dc:creator>
    <dc:date>2007-03-27T15:37:49Z</dc:date>
    <item>
      <title>Append to Microsoft Access database</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Append-to-Microsoft-Access-database/m-p/2639#M131</link>
      <description>How do I append to an access database?  Do I need all variables in my SAS data set or I can append to the Access table with just some of them? &lt;BR /&gt;
&lt;BR /&gt;
I tried this, but SAS didn't like my syntax.  &lt;BR /&gt;
&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
connect to odbc (dsn="CBR Tracker");&lt;BR /&gt;
execute(insert * from to_tracking into Tbl_entry1) by odbc;&lt;BR /&gt;
disconnect from odbc;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 27 Mar 2007 15:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Append-to-Microsoft-Access-database/m-p/2639#M131</guid>
      <dc:creator>Chip</dc:creator>
      <dc:date>2007-03-27T15:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Append to Microsoft Access database</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Append-to-Microsoft-Access-database/m-p/2640#M132</link>
      <description>Don't know if this is the most efficient method, but it works.&lt;BR /&gt;
&lt;BR /&gt;
1.  Import the existing mdb into SAS&lt;BR /&gt;
2.  Append the new data to the SAS dataset&lt;BR /&gt;
3.  Export the new SAS dataset to mdb&lt;BR /&gt;
&lt;BR /&gt;
PROC IMPORT OUT= WORK.NewOrdFaults                                                                                                      &lt;BR /&gt;
            DATATABLE= "NewOrderFaults"                                                                                                 &lt;BR /&gt;
            DBMS=ACCESS REPLACE;                                                                                                        &lt;BR /&gt;
     DATABASE="\\Moftp\MainFrameFtp\NewOrderFaults.MDB";                                                                        &lt;BR /&gt;
     SCANMEMO=YES;                                                                                                                      &lt;BR /&gt;
     USEDATE=YES;                                                                                                                       &lt;BR /&gt;
     SCANTIME=NO;                                                                                                                       &lt;BR /&gt;
RUN;                                                                                                                      &lt;BR /&gt;
&lt;BR /&gt;
data UpDater;                                                                                                              &lt;BR /&gt;
  set NewOrdFaults                                                                                                                      &lt;BR /&gt;
      CatalogWk2;                                                                                                                       &lt;BR /&gt;
      format Delivery DeliveryWk Generate GenerateWk date9.;                                                                            &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
 &lt;BR /&gt;
PROC EXPORT DATA= WORK.UpDater                                                                                                          &lt;BR /&gt;
            OUTTABLE= "NewOrderFaults"                                                                                                  &lt;BR /&gt;
            DBMS=ACCESS REPLACE;                                                                                                        &lt;BR /&gt;
     DATABASE="\\MOFtp\MainFrameFtp\NewOrderFaults.MDB";                                                                        &lt;BR /&gt;
RUN;</description>
      <pubDate>Wed, 28 Mar 2007 13:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Append-to-Microsoft-Access-database/m-p/2640#M132</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2007-03-28T13:10:33Z</dc:date>
    </item>
  </channel>
</rss>

