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
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.