<?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: Extraction from Oracle in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Extraction-from-Oracle/m-p/323943#M9434</link>
    <description>&lt;P&gt;First, 300 columns sounds like a bad data model, which will give trouble. And you are experiencing that right now. It gets very syntax intense.&lt;/P&gt;
&lt;P&gt;Perhaps you don't need to convert all numerical columns. If you hit a SAS date limit on ly data/datetime columns need transformation.&lt;/P&gt;
&lt;P&gt;If you already going through the trouble of writing explicit pass-through, just add cast() operations on the columns you wish to convert.&lt;/P&gt;
&lt;P&gt;Reducing no lines code is done via macro in SAS. But since this is one time job, I think you'll&amp;nbsp;won't save much time on creating such logic, so copy/paste I guess...&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2017 15:07:59 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-01-11T15:07:59Z</dc:date>
    <item>
      <title>Extraction from Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Extraction-from-Oracle/m-p/323928#M9433</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Am trying to extract data from oracle into a dataset and append the data into Teradata .&lt;/P&gt;&lt;P&gt;since some of the native funtionality of teradata is not working when connecting to orcale.so ended up in pulling data to SAS and then upload to terdata.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to oracle (PATH=XXXX USER=XXXX PASSWORD="XXXX" PRESERVE_COMMENTS );&lt;BR /&gt;create table work.OracleTabExtract&lt;BR /&gt;as select * from&lt;BR /&gt;connection to oracle(&lt;BR /&gt;select /*+ parallel(16)*/ * from oracle.tablename&amp;nbsp;&lt;BR /&gt;) ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to convert all columns present in the oracle table to character if its numeric.since the date columns are not getting loaded properly into teradata as its warning out.&lt;/P&gt;&lt;P&gt;is there any idea which i can include in the above step? the problem is i have more than 300 columns in the table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 14:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Extraction-from-Oracle/m-p/323928#M9433</guid>
      <dc:creator>Saranya_Sub</dc:creator>
      <dc:date>2017-01-11T14:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction from Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Extraction-from-Oracle/m-p/323943#M9434</link>
      <description>&lt;P&gt;First, 300 columns sounds like a bad data model, which will give trouble. And you are experiencing that right now. It gets very syntax intense.&lt;/P&gt;
&lt;P&gt;Perhaps you don't need to convert all numerical columns. If you hit a SAS date limit on ly data/datetime columns need transformation.&lt;/P&gt;
&lt;P&gt;If you already going through the trouble of writing explicit pass-through, just add cast() operations on the columns you wish to convert.&lt;/P&gt;
&lt;P&gt;Reducing no lines code is done via macro in SAS. But since this is one time job, I think you'll&amp;nbsp;won't save much time on creating such logic, so copy/paste I guess...&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2017 15:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Extraction-from-Oracle/m-p/323943#M9434</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-01-11T15:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction from Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Extraction-from-Oracle/m-p/325331#M9459</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/40895"&gt;@Saranya_Sub&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible to do this without landing the data in SAS. Adding a Teradata Parallel Transporter load to the create table could help with performance. DBTYPE= can help with the conversion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;&amp;nbsp;is correct. 300 columns is a lot to deal with. The program to do this could be long.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 16:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Extraction-from-Oracle/m-p/325331#M9459</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2017-01-17T16:33:12Z</dc:date>
    </item>
  </channel>
</rss>

