Unfortunately it's not that simple. As SharePoint Online is in the Azure cloud, you need to use some APIs to access the file, download it to your SAS session, and then import.
There are a few setup steps to complete first in order to get your SAS session connected with Microsoft 365. These will require cooperation with your IT team or whoever manages your Microsoft 365 tenant. Once complete, you can use the code and macro routines shared here to list your SharePoint folders and files, download the file you need, and even upload content from SAS to SharePoint if needed.
I have documentation and examples (and a demo video) in this article: How to use SAS to access Microsoft 365
Unfortunately it's not that simple. As SharePoint Online is in the Azure cloud, you need to use some APIs to access the file, download it to your SAS session, and then import.
There are a few setup steps to complete first in order to get your SAS session connected with Microsoft 365. These will require cooperation with your IT team or whoever manages your Microsoft 365 tenant. Once complete, you can use the code and macro routines shared here to list your SharePoint folders and files, download the file you need, and even upload content from SAS to SharePoint if needed.
I have documentation and examples (and a demo video) in this article: How to use SAS to access Microsoft 365
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.