BookmarkSubscribeRSS Feed
AntonLykov
Calcite | Level 5

Hi!

I'm trying to figure out the best way to store configuration properties for my groovy activity in SAS RTDM 6.5.

 

It is possible to set properties for RTDM Engine Server in Confuguration Manager plugin in Management Console. These properties are retrieved in spring xml with expressions like

#{dsConfig.resolveStringValue('sasds.engine.default.timezoneid')}

Is it possible to access such properties from groovy activity?

 

It is also possible to set system wide properties in JAVA_OPTS variable in SASServer7_1/bin/setenv.sh script or put them in file somewhere on file system and load it in runtime. However to change them you need access to filesystem. What is the best practice for storing and accessing properties in custom groovy activities?

1 REPLY 1
shill
SAS Employee

Since the use of Groovy for custom processes isn't an officially supported option, I don't have any specific examples for you. But I did check with someone internally and their response was that, since everything from the classpath is available to the Groovy activities, you should have access to all system options, classes and property files. It may require some knowledge to know how to fetch the something within the spring context of your parent classloader, but there are no restrictions against doing this. (For reference, the groovy classloader is a child of the main engine classloader.) 


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

G2 Grid Leader Spring 2025.png

 

 

 

 

Want to review SAS Customer Intelligence 360? Gartner and G2 are offering a gift card or charitable donation for each accepted review. Use this link for G2 to opt out of receiving anything of value for your review.

 

Gartner.jpg

 

SAS Customer Intelligence 360

Get started with CI 360

Review CI 360 Release Notes

Open a Technical Support case

Suggest software enhancements

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.

G2 Grid Leader Spring 2025.png

 

 

 

 

Want to review SAS Customer Intelligence 360? Gartner and G2 are offering a gift card or charitable donation for each accepted review. Use this link for G2 to opt out of receiving anything of value for your review.

 

Gartner.jpg

 

SAS Customer Intelligence 360

Get started with CI 360

Review CI 360 Release Notes

Open a Technical Support case

Suggest software enhancements

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
  • 1 reply
  • 1516 views
  • 0 likes
  • 2 in conversation