<?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 data set export from sas to import into RDBMS. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19222#M3877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;need to save sas data set in database by using libname. at the starting of each month need to delete only( said only) rows with out deleting table structure and update the table with new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Mar 2012 20:13:30 GMT</pubDate>
    <dc:creator>sassharp</dc:creator>
    <dc:date>2012-03-01T20:13:30Z</dc:date>
    <item>
      <title>data set export from sas to import into RDBMS.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19222#M3877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;need to save sas data set in database by using libname. at the starting of each month need to delete only( said only) rows with out deleting table structure and update the table with new data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 20:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19222#M3877</guid>
      <dc:creator>sassharp</dc:creator>
      <dc:date>2012-03-01T20:13:30Z</dc:date>
    </item>
    <item>
      <title>odbc doubt.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19223#M3878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More detail will definitely help.&amp;nbsp; For now, it seems to me that 'update' statement using with datastep or SQL may be relevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 20:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19223#M3878</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-03-01T20:53:49Z</dc:date>
    </item>
    <item>
      <title>data set export from sas to import into RDBMS.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19224#M3879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt;; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;delete&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; import.x; &lt;/SPAN&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; import.x;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;set &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;export.y;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import and export are libnames defined correctly on oracle, sas side respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q) Need to delete all rows in x and fill rows with y .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 21:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19224#M3879</guid>
      <dc:creator>sassharp</dc:creator>
      <dc:date>2012-03-01T21:32:06Z</dc:date>
    </item>
    <item>
      <title>data set export from sas to import into RDBMS.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19225#M3880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The data step replaces the RDBMS table, so in your example the delete operation is unnecessary.&lt;/P&gt;&lt;P&gt;If you want the table to be persistant, use delete, then SQL insert (or proc append).&lt;/P&gt;&lt;P&gt;Also, there are perhaps more efficient truncation command for your RDBMS that can be executed in SQL pass-thru.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 08:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19225#M3880</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-03-02T08:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: data set export from sas to import into RDBMS.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19226#M3881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do know sql pass thru. Here I wanted to delete all previous months data then load the RDBMS table with present month data(from SAS). once I use proc delete whole RDBMS table is deleting. Just I wanted to delete rows only. not table structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 14:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19226#M3881</guid>
      <dc:creator>sassharp</dc:creator>
      <dc:date>2012-03-02T14:45:53Z</dc:date>
    </item>
    <item>
      <title>data set export from sas to import into RDBMS.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19227#M3882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;sql&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;connect&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; sqlsvr(dsn=xxx user=yyy pwd=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'zzz'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;execute&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; (truncate table base.monthlydata) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; sqlsvr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;disconnect&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; sqlsvr;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;quit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: red; font-family: 'Courier New'; background-color: white;"&gt;error&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; in log&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;ERROR: CLI execute error: [DataDirect][ODBC SQL Server Driver][SQL Server]Cannot find the object &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;"monthlydata"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; because it does not &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exist or you do not have &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: teal; font-family: 'Courier New'; background-color: white;"&gt;permissions.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 18:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19227#M3882</guid>
      <dc:creator>sassharp</dc:creator>
      <dc:date>2012-03-02T18:33:00Z</dc:date>
    </item>
    <item>
      <title>data set export from sas to import into RDBMS.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19228#M3883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just as LinusH said in your example the delete operation is unnecessary if the final table name is the same with old table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data class;
 set sashelp.class;
run;
proc sql;
 delete * from class;

 insert into&amp;nbsp; class
&amp;nbsp; select * from sashelp.class;
quit;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 06:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-set-export-from-sas-to-import-into-RDBMS/m-p/19228#M3883</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-03-05T06:55:45Z</dc:date>
    </item>
  </channel>
</rss>

