BookmarkSubscribeRSS Feed
mmmaria
Calcite | Level 5

Hello everyone! 

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. 

 

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: 

 

input (<table>.field_1, 20.0)

 

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. 

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. 

3 REPLIES 3
JamesAnderson
SAS Employee

Hi @mmmaria ,

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:

1) Are you using this calculated item in Refine Output ? (this would also result in it being in the WHERE clause)

2) What is your target output type (delimited, SAS data set, database table) ?

 

Thanks

James

 

mmmaria
Calcite | Level 5

Hi James! 

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? 

2. Target output type is a DB table

JamesAnderson
SAS Employee

HI @mmmaria  - 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.

 

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 ?

 

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.

Regards
James

Review SAS CI360 now.png

 

Want to review SAS CI360? G2 is offering a gift card or charitable donation for each accepted review. Use this link to opt out of receiving anything of value for your review.

 

 

 

 

SAS Customer Intelligence 360

Get started with CI 360

Review CI 360 Release Notes

Open a Technical Support case

Suggest software enhancements

Listen to the Reimagine Marketing podcast

Assess your marketing efforts with a free tool

 

Training Resources

SAS Customer Intelligence Learning Subscription (login required)

Access free tutorials

Refer to documentation

Latest hot fixes

Compatibility notice re: SAS 9.4M8 (TS1M8) or later

 

 

How to improve email deliverability

SAS' Peter Ansbacher shows you how to use the dashboard in SAS Customer Intelligence 360 for better results.

Find more tutorials on the SAS Users YouTube channel.

Review SAS CI360 now.png

 

Want to review SAS CI360? G2 is offering a gift card or charitable donation for each accepted review. Use this link to opt out of receiving anything of value for your review.

 

 

 

 

SAS Customer Intelligence 360

Get started with CI 360

Review CI 360 Release Notes

Open a Technical Support case

Suggest software enhancements

Listen to the Reimagine Marketing podcast

Assess your marketing efforts with a free tool

 

Training Resources

SAS Customer Intelligence Learning Subscription (login required)

Access free tutorials

Refer to documentation

Latest hot fixes

Compatibility notice re: SAS 9.4M8 (TS1M8) or later

 

 

Discussion stats
  • 3 replies
  • 1039 views
  • 0 likes
  • 2 in conversation