<?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: How to load a SAS dataset into a Oracle database in SAS Viya 4? in Moving to SAS Viya</title>
    <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872527#M13</link>
    <description>&lt;P&gt;Hi, here is the sample code used:&lt;BR /&gt;caslib orcaslib desc='Oracle Caslib'&lt;BR /&gt;datasource=(srctype='oracle'&lt;BR /&gt;username='user1'&lt;BR /&gt;password='******'&lt;BR /&gt;path="//XX.XX.XX.XXX:XXXX/exadat" );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc casutil incaslib="GALAXY" outcaslib="GALAXY" ;&lt;BR /&gt;save casdata="TEST1" casout="TEST1" replace;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am able to fetch the data from oracle but I am not able to load the data into oracle database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After referring to many articles, i see that we will be able to load either in the form of csv/ort and oracle will consume the csv and convert to a table in respective schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you send me a sample code if you have tested.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2023 11:09:17 GMT</pubDate>
    <dc:creator>saikrishna786</dc:creator>
    <dc:date>2023-04-27T11:09:17Z</dc:date>
    <item>
      <title>How to load a SAS dataset into a Oracle database in SAS Viya 4?</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872261#M10</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to load a sas dataset into oracle database in SAS Viya 4?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example#1:&lt;/P&gt;&lt;P&gt;I have a sas dataset "Test" with 5 variables, stored in caslibrary SASHELP.&lt;/P&gt;&lt;P&gt;I want to add "Test" dataset to Oracle database with table name OraTest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example#2:&lt;/P&gt;&lt;P&gt;I have a sas dataset "Test" with 5 variables, stored in caslibrary SASHELP.&lt;/P&gt;&lt;P&gt;I want to append Oracle database with table name OraTest with "Test"&amp;nbsp; sas dataset. ("OraTest" has same variables as "Test" dataset)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sai Krishna&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872261#M10</guid>
      <dc:creator>saikrishna786</dc:creator>
      <dc:date>2023-04-26T14:34:10Z</dc:date>
    </item>
    <item>
      <title>How to load a SAS Dataset to Oracle database in SAS Viya 4.</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872260#M12</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to load a sas dataset into oracle database in SAS Viya 4?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example#1:&lt;/P&gt;&lt;P&gt;I have a sas dataset "Test" with 5 variables, stored in caslibrary SASHELP.&lt;/P&gt;&lt;P&gt;I want to add "Test" dataset to Oracle database with table name OraTest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example#2:&lt;/P&gt;&lt;P&gt;I have a sas dataset "Test" with 5 variables, stored in caslibrary SASHELP.&lt;/P&gt;&lt;P&gt;I want to append Oracle database with table name OraTest with "Test"&amp;nbsp; sas dataset. ("OraTest" has same variables as "Test" dataset)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sai Krishna&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:32:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872260#M12</guid>
      <dc:creator>saikrishna786</dc:creator>
      <dc:date>2023-04-26T14:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a SAS dataset into a Oracle database in SAS Viya 4?</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872449#M11</link>
      <description>&lt;P&gt;It should be pretty much the same as in SAS 9.&lt;/P&gt;
&lt;P&gt;Assuming that you already have your Oracle data base schema connected throug a libref, you could use a data step, proc sql, proc append and so forth.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 07:04:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872449#M11</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-04-27T07:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a SAS dataset into a Oracle database in SAS Viya 4?</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872527#M13</link>
      <description>&lt;P&gt;Hi, here is the sample code used:&lt;BR /&gt;caslib orcaslib desc='Oracle Caslib'&lt;BR /&gt;datasource=(srctype='oracle'&lt;BR /&gt;username='user1'&lt;BR /&gt;password='******'&lt;BR /&gt;path="//XX.XX.XX.XXX:XXXX/exadat" );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc casutil incaslib="GALAXY" outcaslib="GALAXY" ;&lt;BR /&gt;save casdata="TEST1" casout="TEST1" replace;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am able to fetch the data from oracle but I am not able to load the data into oracle database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After referring to many articles, i see that we will be able to load either in the form of csv/ort and oracle will consume the csv and convert to a table in respective schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you send me a sample code if you have tested.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 11:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872527#M13</guid>
      <dc:creator>saikrishna786</dc:creator>
      <dc:date>2023-04-27T11:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a SAS dataset into a Oracle database in SAS Viya 4?</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872543#M14</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/384434"&gt;@saikrishna786&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I would recommend, if you have not already, to check the SAS on-line docs&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/casref/n0s9iuu3d4cxjzn1st0z33ik35if.htm" target="_blank"&gt;SAS Help Center: Oracle Data Connector&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/casref/p0j7s6opsm8bbdn1edni5ngqdjyu.htm" target="_blank"&gt;SAS Help Center: Where to Specify Data Connector Options&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Then read this article&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Loading-SAS-data-to-Amazon-Redshift-Don-t-run-it-too-quickly/ta-p/599776" target="_blank"&gt;Loading SAS data to Amazon Redshift…Don’t run it too quickly! - SAS Support Communities&lt;/A&gt;&amp;nbsp;(While it's not directly related to Oracle, it has paragraph related to bulk loading into a Database)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe what you need to look into is something similar to this&lt;/P&gt;
&lt;PRE&gt;Proc CASUTIL; 
save casdata="cars" incaslib="tdlib" casout="cars_CAS"
      dataSourceOptions=(schema="tdSchema");
quit;&lt;/PRE&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 11:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872543#M14</guid>
      <dc:creator>AhmedAl_Attar</dc:creator>
      <dc:date>2023-04-27T11:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to load a SAS dataset into a Oracle database in SAS Viya 4?</title>
      <link>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872554#M15</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13868"&gt;@AhmedAl_Attar&lt;/a&gt;&amp;nbsp;.. sure will try and check if its working.&lt;/P&gt;&lt;P&gt;Thank you for the response&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2023 12:28:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Moving-to-SAS-Viya/How-to-load-a-SAS-dataset-into-a-Oracle-database-in-SAS-Viya-4/m-p/872554#M15</guid>
      <dc:creator>saikrishna786</dc:creator>
      <dc:date>2023-04-27T12:28:31Z</dc:date>
    </item>
  </channel>
</rss>

