<?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 CIS: pass a calculated item containing input function to Oracle in SAS Customer Intelligence</title>
    <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-CIS-pass-a-calculated-item-containing-input-function-to/m-p/739686#M1723</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/307179"&gt;@mmmaria&lt;/a&gt;&amp;nbsp; - I don't expect it needs to load the whole table, only the records that are in the export. If you can share the export query generated in the logfile we could take a look, or perhaps speak with SAS Tech Support for a deep dive into what is happening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a test you have you tried exporting to a table that has that column as a character type and don use the Calculated Item - just to be sure that its the calculated item causing the problem ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To answer you're original question, with CI Studio there is no way to use Oracle Functions directly. You could perhaps create a view in the database that does this conversion, and then use that view in CI Studio.&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;James&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 00:33:29 GMT</pubDate>
    <dc:creator>JamesAnderson</dc:creator>
    <dc:date>2021-05-07T00:33:29Z</dc:date>
    <item>
      <title>SAS CIS: pass a calculated item containing input function to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-CIS-pass-a-calculated-item-containing-input-function-to/m-p/737274#M1717</link>
      <description>&lt;P&gt;Hello everyone!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if I picked the wrong component for this, but my question has to do with SAS CIS as well as SAS programming and Oracle interaction.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a calculated item in SAS CIS which contains the input function converting a string type DB table field into a number. It goes something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input (&amp;lt;table&amp;gt;.field_1, 20.0)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because of this, export nodes containing this calculated item as one of their export fields can't pass the resulting query to Oracle, the query is processed in WORK and it ends up too heavy for our resources.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of a solution I can use inside a calculated item in order to convert a string value into a number that can be passed to Oracle 12c? As far as I understand, you can't use purely Oracle functions (to_number etc) in calculated items, can't pass purely SAS functions to Oracle and I haven't been able to find a solution that works in both environments.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 13:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-CIS-pass-a-calculated-item-containing-input-function-to/m-p/737274#M1717</guid>
      <dc:creator>mmmaria</dc:creator>
      <dc:date>2021-04-27T13:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS CIS: pass a calculated item containing input function to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-CIS-pass-a-calculated-item-containing-input-function-to/m-p/737751#M1719</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/307179"&gt;@mmmaria&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I would have expected the calculated function not to matter on the Export as it is part of the SELECT clause. A couple of questions to understand your use case a bit more:&lt;/P&gt;
&lt;P&gt;1) Are you using this calculated item in Refine Output ? (this would also result in it being in the WHERE clause)&lt;/P&gt;
&lt;P&gt;2) What is your target output type (delimited, SAS data set, database table) ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;James&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 22:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-CIS-pass-a-calculated-item-containing-input-function-to/m-p/737751#M1719</guid>
      <dc:creator>JamesAnderson</dc:creator>
      <dc:date>2021-04-28T22:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS CIS: pass a calculated item containing input function to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-CIS-pass-a-calculated-item-containing-input-function-to/m-p/737837#M1720</link>
      <description>&lt;P&gt;Hi James!&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. As far as I know, no. It's only used in the SELECT clause, but the subject is a DB table field so I'm imagining it's loading the entire table into WORK in order to process it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Target output type is a DB table&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 10:16:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-CIS-pass-a-calculated-item-containing-input-function-to/m-p/737837#M1720</guid>
      <dc:creator>mmmaria</dc:creator>
      <dc:date>2021-04-29T10:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS CIS: pass a calculated item containing input function to Oracle</title>
      <link>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-CIS-pass-a-calculated-item-containing-input-function-to/m-p/739686#M1723</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/307179"&gt;@mmmaria&lt;/a&gt;&amp;nbsp; - I don't expect it needs to load the whole table, only the records that are in the export. If you can share the export query generated in the logfile we could take a look, or perhaps speak with SAS Tech Support for a deep dive into what is happening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a test you have you tried exporting to a table that has that column as a character type and don use the Calculated Item - just to be sure that its the calculated item causing the problem ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To answer you're original question, with CI Studio there is no way to use Oracle Functions directly. You could perhaps create a view in the database that does this conversion, and then use that view in CI Studio.&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;James&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 00:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Customer-Intelligence/SAS-CIS-pass-a-calculated-item-containing-input-function-to/m-p/739686#M1723</guid>
      <dc:creator>JamesAnderson</dc:creator>
      <dc:date>2021-05-07T00:33:29Z</dc:date>
    </item>
  </channel>
</rss>

