BookmarkSubscribeRSS Feed
JAE2019
Obsidian | Level 7

Hi Experts!

 

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.

 

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.

 

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.

 

Hoping to get some guidance regarding this error

 

Thank you!!!

1 REPLY 1
konsri
SAS Employee

We use code as below when executing.

 

dcl package sqlstmt _stmt("query");

_stmt.setVarchar      to bind the value.

 

Try as above to reproduce. Maybe setVarchar is failing in this case.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Discussion stats
  • 1 reply
  • 3292 views
  • 0 likes
  • 2 in conversation