BookmarkSubscribeRSS Feed
LineMoon
Lapis Lazuli | Level 10

Hello Experts,

Please, I have some questions to ask

1- What is the requirement installfor calling R from SAS?

2- what are the sas modules ( IML, …) allowed to call R from SAS

3- It is possible to call R from SAS, what’s about calling SAS from R

3 REPLIES 3
art297
Opal | Level 21

You can get a lot of your answers at: http://blogs.sas.com/content/iml/2013/11/25/twelve-advantages-to-calling-r-from-the-sasiml-language....

 

Art, CEO, AnalystFinder.com

 

Ksharp
Super User

Calling @Rick_SAS

Rick_SAS
SAS Super FREQ

I believe that (1) and (2) are covered in the SAS/IML documentation: "Calling Functions in the R language."

 

You cannot call SAS from R in SAS 9.4. However, if you are using SAS Viya then check out the SWAT package for calling CAS actions from R.

 

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

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1669 views
  • 0 likes
  • 4 in conversation