<?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: SAS DI Studio Oracle Join Transformation execute as 'CTAS' in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-Studio-Oracle-Join-Transformation-execute-as-CTAS/m-p/808397#M318765</link>
    <description>&lt;P&gt;Anyone?? Any help would be appreciated..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 19:30:33 GMT</pubDate>
    <dc:creator>JeroenPotgieter</dc:creator>
    <dc:date>2022-04-18T19:30:33Z</dc:date>
    <item>
      <title>SAS DI Studio Oracle Join Transformation execute as 'CTAS'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-Studio-Oracle-Join-Transformation-execute-as-CTAS/m-p/807810#M318539</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In DI Studio I want to join two oracle table with pass-through facility. In the standard execution 'join' tranformation, SAS DI pefroms the following steps :&lt;/P&gt;&lt;P&gt;1. It creates the table in Oracle&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; And with an insert it loads the data into the table.&lt;/P&gt;&lt;P&gt;All this with bad performance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible with a standard 'join' transformation to let DI Studio make only a 'Create Table As'&amp;nbsp; SQL? Or is an option available, that I'm not aware of, in SAS DI that will create a 'CTAS' sql query?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current Situation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Oracle-libname.[tablename]&lt;/P&gt;&lt;P&gt;(dbnull = (&lt;BR /&gt;columnname1 = NO&lt;BR /&gt;columnname2 = NO&lt;BR /&gt;columnname3 = NO));&lt;BR /&gt;attrib&amp;nbsp;columnname1 length = $32&lt;BR /&gt;format = $32.&lt;BR /&gt;informat = $32.&lt;BR /&gt;label = 'columnname1';&lt;BR /&gt;attrib columnname2 length = $32&lt;BR /&gt;format = $32.&lt;BR /&gt;informat = $32.&lt;BR /&gt;label = columnname2';&lt;BR /&gt;attrib columnname3 length = $32&lt;BR /&gt;format = $32.&lt;BR /&gt;informat = $32.&lt;BR /&gt;label = 'columnname3';&lt;BR /&gt;call missing(of _all_);&lt;BR /&gt;stop;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to ORACLE&lt;BR /&gt;(&lt;BR /&gt;&lt;EM&gt;[Connection string]&lt;/EM&gt;&lt;BR /&gt;);&lt;BR /&gt;execute&lt;BR /&gt;(&lt;BR /&gt;insert into oracle-location.oracle-table&lt;BR /&gt;select&lt;BR /&gt;A.columnname1,&lt;BR /&gt;A.columnname2,&lt;BR /&gt;A..columnname3&lt;BR /&gt;from&lt;BR /&gt;oracle-location.oracle-tablename1 A inner join&lt;BR /&gt;oracle-location.oracle-tablename2 B&lt;BR /&gt;on&lt;BR /&gt;(&lt;BR /&gt;A..columnname1 = B.columnname1&lt;BR /&gt;and B.columnname2 = 1&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;) by ORACLE;&lt;BR /&gt;&lt;BR /&gt;%rcSet(&amp;amp;sqlrc);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;disconnect from ORACLE;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Preferred Sitation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to ORACLE&lt;BR /&gt;(&lt;BR /&gt;&lt;EM&gt;[Connection string]&lt;/EM&gt;&lt;BR /&gt;);&lt;BR /&gt;execute&lt;BR /&gt;(&lt;BR /&gt;create table oracle-location.oracle-table as (&lt;BR /&gt;&amp;nbsp;select&lt;BR /&gt;A.columnname1,&lt;BR /&gt;A.columnname2,&lt;BR /&gt;A..columnname3&lt;BR /&gt;from&lt;BR /&gt;oracle-location.oracle-tablename1 A inner join&lt;BR /&gt;oracle-location.oracle-tablename2 B&lt;BR /&gt;on&lt;BR /&gt;(&lt;BR /&gt;A..columnname1 = B.columnname1&lt;BR /&gt;and B.columnname2 = 1&lt;BR /&gt;))&lt;BR /&gt;&lt;BR /&gt;) by ORACLE;&lt;BR /&gt;&lt;BR /&gt;%rcSet(&amp;amp;sqlrc);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;disconnect from ORACLE;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 13:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-Studio-Oracle-Join-Transformation-execute-as-CTAS/m-p/807810#M318539</guid>
      <dc:creator>JeroenPotgieter</dc:creator>
      <dc:date>2022-04-14T13:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Studio Oracle Join Transformation execute as 'CTAS'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-Studio-Oracle-Join-Transformation-execute-as-CTAS/m-p/808397#M318765</link>
      <description>&lt;P&gt;Anyone?? Any help would be appreciated..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 19:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-Studio-Oracle-Join-Transformation-execute-as-CTAS/m-p/808397#M318765</guid>
      <dc:creator>JeroenPotgieter</dc:creator>
      <dc:date>2022-04-18T19:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS DI Studio Oracle Join Transformation execute as 'CTAS'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-DI-Studio-Oracle-Join-Transformation-execute-as-CTAS/m-p/808459#M318792</link>
      <description>&lt;P&gt;I don't believe OOT DIS transformations can generate your desired syntax.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can always go for a user written code transformation or if you want something reusable for a custom transformation. And to keep things still to a certain degree metadata driven you then can use the DIS generated macro variables in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If going for user written code: Make sure you design and write this code in a way so it's re-runnable (like: drop table if it already exists).&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 00:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-DI-Studio-Oracle-Join-Transformation-execute-as-CTAS/m-p/808459#M318792</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-04-19T00:01:33Z</dc:date>
    </item>
  </channel>
</rss>

