<?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 Updating/Creating a SAS Dataset with .NET in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Updating-Creating-a-SAS-Dataset-with-NET/m-p/39268#M4722</link>
    <description>hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm developing a .NET program which creates an ADO.NET DataTable from an existing SAS Library via the SAS OleDB dataprovider and now i want to write the changes in the DataTable back to SAS.&lt;BR /&gt;
&lt;BR /&gt;
After reading the documentation for SAS IT, SAS IOM, SAS OleDB Provider i come to the conclusion that there is no simple way to achieve this. The most helpful documentation i found was this:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/tools/oledb/rr_createdelete.htm" target="_blank"&gt;http://support.sas.com/documentation/tools/oledb/rr_createdelete.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
There are three methods described:&lt;BR /&gt;
1) using SQL Statements will be difficult and i guess that the performance will be terrible if i submit a CREATE TABLE followed by a million INSERT INTO SQL Statements.&lt;BR /&gt;
2) using the ITableDefinition interface: is this even possible in .NET? Can i add rows to the table?&lt;BR /&gt;
3) using ADOX: seems to be the only reasonable method to create and fill a SAS dataset. Has anybody tried that method yet?&lt;BR /&gt;
&lt;BR /&gt;
Am i missing something here? Is there really no simple solution provided by SAS to update or create a new SAS dataset when you are using SAS/IT with the SAS data providers in the .NET Framework?&lt;BR /&gt;
&lt;BR /&gt;
I hope that Chris or somebody else can help me!</description>
    <pubDate>Wed, 24 Nov 2010 17:46:23 GMT</pubDate>
    <dc:creator>AndreasMenrath</dc:creator>
    <dc:date>2010-11-24T17:46:23Z</dc:date>
    <item>
      <title>Updating/Creating a SAS Dataset with .NET</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Updating-Creating-a-SAS-Dataset-with-NET/m-p/39268#M4722</link>
      <description>hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm developing a .NET program which creates an ADO.NET DataTable from an existing SAS Library via the SAS OleDB dataprovider and now i want to write the changes in the DataTable back to SAS.&lt;BR /&gt;
&lt;BR /&gt;
After reading the documentation for SAS IT, SAS IOM, SAS OleDB Provider i come to the conclusion that there is no simple way to achieve this. The most helpful documentation i found was this:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/tools/oledb/rr_createdelete.htm" target="_blank"&gt;http://support.sas.com/documentation/tools/oledb/rr_createdelete.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
There are three methods described:&lt;BR /&gt;
1) using SQL Statements will be difficult and i guess that the performance will be terrible if i submit a CREATE TABLE followed by a million INSERT INTO SQL Statements.&lt;BR /&gt;
2) using the ITableDefinition interface: is this even possible in .NET? Can i add rows to the table?&lt;BR /&gt;
3) using ADOX: seems to be the only reasonable method to create and fill a SAS dataset. Has anybody tried that method yet?&lt;BR /&gt;
&lt;BR /&gt;
Am i missing something here? Is there really no simple solution provided by SAS to update or create a new SAS dataset when you are using SAS/IT with the SAS data providers in the .NET Framework?&lt;BR /&gt;
&lt;BR /&gt;
I hope that Chris or somebody else can help me!</description>
      <pubDate>Wed, 24 Nov 2010 17:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Updating-Creating-a-SAS-Dataset-with-NET/m-p/39268#M4722</guid>
      <dc:creator>AndreasMenrath</dc:creator>
      <dc:date>2010-11-24T17:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Updating/Creating a SAS Dataset with .NET</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Updating-Creating-a-SAS-Dataset-with-NET/m-p/39269#M4723</link>
      <description>Andreas,&lt;BR /&gt;
&lt;BR /&gt;
Here is an example EG custom task that does this:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/onlinedoc/guide/customtasks/samples/FSEdit42.zip" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/guide/customtasks/samples/FSEdit42.zip&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I realize your application is not running within EG, but you could use a similar approach.  That is, use the SAS IOM OLE DB provider to read the data, and use the SAS Workspace LanguageService to update the data table using PROC SQL UPDATE.&lt;BR /&gt;
&lt;BR /&gt;
Chris</description>
      <pubDate>Tue, 30 Nov 2010 20:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Updating-Creating-a-SAS-Dataset-with-NET/m-p/39269#M4723</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2010-11-30T20:09:57Z</dc:date>
    </item>
  </channel>
</rss>

