<?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: Update / modify table by odbc in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Update-modify-table-by-odbc/m-p/160275#M31204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you wish to use the data step, you need to use the MODIFY statement, see on-line doc and samples on support.sas.com.&lt;/P&gt;&lt;P&gt;You could also use SQL (which your syntax looks like), but then you need to do a correlated sub query. Again, search support.sas.com.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 20:04:10 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2014-09-25T20:04:10Z</dc:date>
    <item>
      <title>Update / modify table by odbc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-modify-table-by-odbc/m-p/160274#M31203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am trying to connect via odbc to update a table using a SAS table I created in SAS Enterprise Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried code similar to this, but I am not getting the results I desire.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname odbclib odbc noprompt= "Driver,Server, DB, ID, PWD, etc".&lt;/P&gt;&lt;P&gt;data odbclib.servertable;&lt;/P&gt;&lt;P&gt;set work.sasegtable;&lt;/P&gt;&lt;P&gt;ytd_earnings = qtr_amount&lt;/P&gt;&lt;P&gt;sen_yrs = Senioriry Years&lt;/P&gt;&lt;P&gt;where clock_num = Clock Number&lt;/P&gt;&lt;P&gt;and pay_yr = Pay Year;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Servertable" is the table on the server I would like to update with the SAS EG table "sasegtable"&lt;/P&gt;&lt;P&gt;I have no problems with my libname statement, just not sure what syntax to use to update a table this way or using the odbc statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help with this would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 19:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-modify-table-by-odbc/m-p/160274#M31203</guid>
      <dc:creator>LAtwood</dc:creator>
      <dc:date>2014-09-25T19:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Update / modify table by odbc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-modify-table-by-odbc/m-p/160275#M31204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you wish to use the data step, you need to use the MODIFY statement, see on-line doc and samples on support.sas.com.&lt;/P&gt;&lt;P&gt;You could also use SQL (which your syntax looks like), but then you need to do a correlated sub query. Again, search support.sas.com.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 20:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-modify-table-by-odbc/m-p/160275#M31204</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-09-25T20:04:10Z</dc:date>
    </item>
  </channel>
</rss>

