<?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: Appending data to access in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Appending-data-to-access/m-p/509176#M136841</link>
    <description>&lt;P&gt;In this post, they use proc datasets with some success:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Integration-with-Microsoft/How-do-I-append-a-SAS-data-set-into-ACCESS-database/td-p/400828" target="_blank"&gt;https://communities.sas.com/t5/Integration-with-Microsoft/How-do-I-append-a-SAS-data-set-into-ACCESS-database/td-p/400828&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets library = accdb nolist;
append base = myaccdb.class 
data = sashelp.class;
force;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 31 Oct 2018 15:41:35 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2018-10-31T15:41:35Z</dc:date>
    <item>
      <title>Appending data to access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Appending-data-to-access/m-p/509162#M136839</link>
      <description>Here is my code&lt;BR /&gt;&lt;BR /&gt;proc export data=sashelp.class&lt;BR /&gt;&amp;nbsp;&amp;nbsp; table=class&lt;BR /&gt;&amp;nbsp;&amp;nbsp; dbms=access2007 replace;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; database='c:\data\test.accdb';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;libname myaccdb 'c:\data\test.accdb';&lt;BR /&gt;&lt;BR /&gt;proc append base=myaccdb.class data=sashelp.class;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;libname myaccdb clear&lt;BR /&gt;My question is i have a primary key thats get removed which will allow duplication. How can i keep my primary key?&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Oct 2018 15:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Appending-data-to-access/m-p/509162#M136839</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2018-10-31T15:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Appending data to access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Appending-data-to-access/m-p/509176#M136841</link>
      <description>&lt;P&gt;In this post, they use proc datasets with some success:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Integration-with-Microsoft/How-do-I-append-a-SAS-data-set-into-ACCESS-database/td-p/400828" target="_blank"&gt;https://communities.sas.com/t5/Integration-with-Microsoft/How-do-I-append-a-SAS-data-set-into-ACCESS-database/td-p/400828&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets library = accdb nolist;
append base = myaccdb.class 
data = sashelp.class;
force;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Oct 2018 15:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Appending-data-to-access/m-p/509176#M136841</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-10-31T15:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Appending data to access</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Appending-data-to-access/m-p/509200#M136854</link>
      <description>&lt;P&gt;Hi Gil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want to append data sets , first you have to remove Primary key constraint, as you know it wouldn't allow duplicate values.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc append will run without any error but in log you will get warning . Like "&lt;!--  THIS MUST BE THE FIRST TAG IN HEAD ELEMENT  --&gt;&amp;nbsp;Add/Update failed for data set because data value(s) do not comply with integrity constraint primary key, number of&amp;nbsp; observations rejected."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 31 Oct 2018 16:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Appending-data-to-access/m-p/509200#M136854</guid>
      <dc:creator>singhsahab</dc:creator>
      <dc:date>2018-10-31T16:32:37Z</dc:date>
    </item>
  </channel>
</rss>

