SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
Doug____
Pyrite | Level 9

Can this be done? I see posts related to IML but I do not have access to IML. Can this be done directly or does it have to be exported to some other format then imported to SAS? 

2 REPLIES 2
ChrisHemedinger
Community Manager

Aside from the SAS/IML integration, SAS doesn't have an engine to read RDS files directly. You could use R to export them (CSV or JSON) and then read that into SAS. If you have SAS Viya, you can use R-swat to connect to SAS Viya from R and send the R data to your SAS session.

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!
yabwon
Onyx | Level 15

You could try the macro form this article: https://www.jstatsoft.org/article/view/v046c02

It assumes (similar to IML) you have R installed on your machine.

 

Bart

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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