<?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: Copy datasets from Oracle to SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Copy-datasets-from-Oracle-to-SAS/m-p/539436#M7067</link>
    <description>&lt;P&gt;Perfect!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made some changes and it worked correctly!&lt;/P&gt;&lt;P&gt;It worked very fast, in a few seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much!!&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 18:40:10 GMT</pubDate>
    <dc:creator>prislo</dc:creator>
    <dc:date>2019-02-28T18:40:10Z</dc:date>
    <item>
      <title>Copy datasets from Oracle to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Copy-datasets-from-Oracle-to-SAS/m-p/539311#M7044</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'am new in sas programming and i have some doubts about create datasets.&lt;/P&gt;&lt;P&gt;I'd like to know how is the best and faster way to copy databases from oracle to sas librarys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already do a simple code to create a database&amp;nbsp;but I realized it was slow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DATA WORK.t013_proposta_201802;
   SET ORA_LIB.T013_PROPOSTA;
   WHERE put(DATEPART(AT013_DTA_INCLUSAO), yymmn6.) = '201802';
RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: The data set ABN_DS.T013_PROPOSTA_201802 has 22881 observations and 156 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 15:38.93&lt;BR /&gt;cpu time 4:32.35&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a faster and more performative way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 14:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Copy-datasets-from-Oracle-to-SAS/m-p/539311#M7044</guid>
      <dc:creator>prislo</dc:creator>
      <dc:date>2019-02-28T14:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Copy datasets from Oracle to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Copy-datasets-from-Oracle-to-SAS/m-p/539317#M7045</link>
      <description>&lt;P&gt;Not sure how we can help.&amp;nbsp; Is the connection to oracle running as fast as possible, where is SAS located, is the network speed good.&amp;nbsp; Is there a large amount of data, could you create a temporary table on the database with the filtered information so less is transmitted etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And please do not code all in uppercase, I don't want to be shouted at!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 14:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Copy-datasets-from-Oracle-to-SAS/m-p/539317#M7045</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-02-28T14:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Copy datasets from Oracle to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Copy-datasets-from-Oracle-to-SAS/m-p/539331#M7049</link>
      <description>&lt;P&gt;The difference between real time and cpu time indicates that the sas-process is waiting for data. So talk to the oracle admins and network staff.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 15:12:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Copy-datasets-from-Oracle-to-SAS/m-p/539331#M7049</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-28T15:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Copy datasets from Oracle to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Copy-datasets-from-Oracle-to-SAS/m-p/539340#M7050</link>
      <description>&lt;P&gt;this may help and worth a try to use in database processing by using explicit pass through&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have pasted the code from&amp;nbsp;&lt;A href="http://support.sas.com/kb/41/616.html" target="_blank"&gt;http://support.sas.com/kb/41/616.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;datepart code should be very similar, change the where clause to oracle datepart from below code&lt;/P&gt;
&lt;P&gt;and a quick google search will you help with datepart code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc sql; connect to oracle(user=&lt;/SPAN&gt;&lt;I&gt;user&lt;/I&gt;&lt;SPAN&gt; password=&lt;/SPAN&gt;&lt;I&gt;password&lt;/I&gt;&lt;SPAN&gt; path=&lt;/SPAN&gt;&lt;I&gt;path&lt;/I&gt;&lt;SPAN&gt;); &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;create table work.job204 as &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;select * from connection to oracle&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt; (select * from Employees where jobcode=204); quit;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 15:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Copy-datasets-from-Oracle-to-SAS/m-p/539340#M7050</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2019-02-28T15:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Copy datasets from Oracle to SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Copy-datasets-from-Oracle-to-SAS/m-p/539436#M7067</link>
      <description>&lt;P&gt;Perfect!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made some changes and it worked correctly!&lt;/P&gt;&lt;P&gt;It worked very fast, in a few seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much!!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 18:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Copy-datasets-from-Oracle-to-SAS/m-p/539436#M7067</guid>
      <dc:creator>prislo</dc:creator>
      <dc:date>2019-02-28T18:40:10Z</dc:date>
    </item>
  </channel>
</rss>

