<?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 Intelligent Decisioning Code File writing to Oracle Database with LONG or CLOB data type in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859322#M1670</link>
    <description>&lt;P&gt;Hello!&lt;BR /&gt;I guess you have posted this twice ... could you remove one of these postings? &lt;BR /&gt;&lt;BR /&gt;Just for the sake of focus ... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;FJa&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 07:26:04 GMT</pubDate>
    <dc:creator>fja</dc:creator>
    <dc:date>2023-02-17T07:26:04Z</dc:date>
    <item>
      <title>SAS Intelligent Decisioning Code File writing to Oracle Database with LONG or CLOB data type</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859319#M1669</link>
      <description>&lt;P&gt;Hi Experts!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a Data Query code file in SAS Intelligent Decisioning that writes to an Oracle Database. One string variable is being written to a variable with CLOB data type in Oracle, since its values will go beyond the 4000 limit of VARCHAR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works when we do the insert statement via SAS Studio, but testing the code file from the SCORING tab of a Decision Flow in SAS ID deems that it's unable to write to the table. Same thing happens when we publish to MAS - it's also unable to write to the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any CAS / MAS related limitation to writing to a CLOB variable in Oracle? We encounter the same problem for writing to variables in Oracle with LONG data type. Attached is a portion of the logs for reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping to get some guidance regarding this error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 06:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859319#M1669</guid>
      <dc:creator>JAE2019</dc:creator>
      <dc:date>2023-02-17T06:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Intelligent Decisioning Code File writing to Oracle Database with LONG or CLOB data type</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859322#M1670</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;I guess you have posted this twice ... could you remove one of these postings? &lt;BR /&gt;&lt;BR /&gt;Just for the sake of focus ... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;FJa&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 07:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859322#M1670</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-02-17T07:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Intelligent Decisioning Code File writing to Oracle Database with LONG or CLOB data type</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859339#M1672</link>
      <description>&lt;P&gt;I can only see edit post, but cannot find the option to delete&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 09:51:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859339#M1672</guid>
      <dc:creator>JAE2019</dc:creator>
      <dc:date>2023-02-17T09:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Intelligent Decisioning Code File writing to Oracle Database with LONG or CLOB data type</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859341#M1673</link>
      <description>&lt;P&gt;Actually.... Oracle Varchar can store around 32KB similar to a SAS character variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can set option DBMAX_TEXT to a value up-to 32KB and then you don't need a CLOB or BLOB which is always a bit hard to work with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if the SAS solution allows for this or if this CLOB field in Oracle is part of a solution table that you're not supposed to change. If so then raise a SAS TechSupport track if you don't find a solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below link to the SAS documentation&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p06jk0u30uhuj5n18fqw9sxr25lk.htm" target="_self"&gt;Data Types for Oracle&lt;/A&gt; that provides the details how Oracle maps to SAS data types (and vice versa).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you really need to deal with an Oracle data type that doesn't map "nicely" to a SAS data type then you can always write an explicit pass-through query and cast the Oracle variable to a type that maps to a SAS data type.&amp;nbsp;&lt;BR /&gt;For example with a CLOB which can contain much more than 32KB you would need to split the Clob into multiple Varchar type variables with 32KB on the Oracle side to map such data to a SAS table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 10:50:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859341#M1673</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-17T10:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Intelligent Decisioning Code File writing to Oracle Database with LONG or CLOB data type</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859362#M1674</link>
      <description>&lt;P&gt;You should be able to insert 32k long string if you define a variable like shown below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;dcl varchar(32000) character set utf8 long_string;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I see there were some bugs related to DS2 SQLSTMT statement that were fixed in Viya 4 - 2020.0.5. What version are you using?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 12:42:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859362#M1674</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2023-02-17T12:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Intelligent Decisioning Code File writing to Oracle Database with LONG or CLOB data type</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859392#M1675</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/137368"&gt;@JAE2019&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I can only see edit post, but cannot find the option to delete&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello!&lt;BR /&gt;You could post a hint to the duplicate thread and mark that as solved ...&lt;BR /&gt;as long as there is at least one thread without any answer.&lt;BR /&gt;That would also have the charme that you earned yourself an accepted answer ... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; (Eventhough people frown on that.)&lt;BR /&gt;Cheers &lt;BR /&gt;Fja&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 14:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859392#M1675</guid>
      <dc:creator>fja</dc:creator>
      <dc:date>2023-02-17T14:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Intelligent Decisioning Code File writing to Oracle Database with LONG or CLOB data type</title>
      <link>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859682#M1676</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&amp;nbsp;for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using 2022.1 LTS at the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option we have tried following another thread was to position the oracle CLOB/LONG fields mapped to SAS Intellligent Decision Datagrids, towards the end of the table - so far it seems this option works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any callout/experience though if writing to CLOB/LONG variables from SAS ID Data Query cause any performance problems?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2023 09:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/SAS-Intelligent-Decisioning-Code-File-writing-to-Oracle-Database/m-p/859682#M1676</guid>
      <dc:creator>JAE2019</dc:creator>
      <dc:date>2023-02-20T09:38:58Z</dc:date>
    </item>
  </channel>
</rss>

