<?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 Update table in Oracle via SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Update-table-in-Oracle-via-SAS/m-p/268032#M53020</link>
    <description>&lt;P&gt;I came across following questions in interview which I felt stumble to answer. Appreciate if anyone guide me to figure out the answer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a) I've 'n' number of datasets (e.g. 1000)&amp;nbsp;in&amp;nbsp; SAS library. I've to create a report to see total number of observations in each of the SAS dataset under that library. Destinations can be in any format (e.g. HTML or CSV). How to accomplish this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;b) I've a dataset called 'customer_sas' in SAS. I've a another table in Oracle called 'customer_oracle'. Now I've to update the table ('customer_oracle')&amp;nbsp;in Oracle by customer id via SAS code. e.g. if customer id is availble in SAS dataset 'customer_sas' and not in Oracle table 'customer_oracle' then we need to update the Oracle table 'customer_oracle'. Now I would like to understand how to read SAS table and then update the Oracle table via SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any help you offer me.&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2016 19:12:50 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2016-05-03T19:12:50Z</dc:date>
    <item>
      <title>Update table in Oracle via SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-table-in-Oracle-via-SAS/m-p/268032#M53020</link>
      <description>&lt;P&gt;I came across following questions in interview which I felt stumble to answer. Appreciate if anyone guide me to figure out the answer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a) I've 'n' number of datasets (e.g. 1000)&amp;nbsp;in&amp;nbsp; SAS library. I've to create a report to see total number of observations in each of the SAS dataset under that library. Destinations can be in any format (e.g. HTML or CSV). How to accomplish this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;b) I've a dataset called 'customer_sas' in SAS. I've a another table in Oracle called 'customer_oracle'. Now I've to update the table ('customer_oracle')&amp;nbsp;in Oracle by customer id via SAS code. e.g. if customer id is availble in SAS dataset 'customer_sas' and not in Oracle table 'customer_oracle' then we need to update the Oracle table 'customer_oracle'. Now I would like to understand how to read SAS table and then update the Oracle table via SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any help you offer me.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 19:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-table-in-Oracle-via-SAS/m-p/268032#M53020</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2016-05-03T19:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Update table in Oracle via SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-table-in-Oracle-via-SAS/m-p/268056#M53028</link>
      <description>&lt;P&gt;1. SASHELP.VTABLE or Dictionary.table - query table&amp;nbsp;based on libname&amp;nbsp;and nobs holds the number of observations. A fairly trivial task to generate the report afterwards.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 19:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-table-in-Oracle-via-SAS/m-p/268056#M53028</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-03T19:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Update table in Oracle via SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Update-table-in-Oracle-via-SAS/m-p/268220#M53073</link>
      <description>&lt;P&gt;For b), there's not enough information to give a detailed answer.&lt;/P&gt;
&lt;P&gt;But basically, you can use "any" SAS updata mechanism that supports a transaction&amp;nbsp;table, including data step w update/modify, or SQL&amp;nbsp;update. This via a SAS/ACCESS to Oracle&amp;nbsp;libaname. Another option is to upload the SAs table to Oracle, and write an SQL pass thru to execute the update in Oracle.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 08:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Update-table-in-Oracle-via-SAS/m-p/268220#M53073</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-05-04T08:57:28Z</dc:date>
    </item>
  </channel>
</rss>

