Hi folks,
I'm newer to SAS and basically I'm looking to automate some Excel tasks. The current process looks like this:
What I would like to do is:
My only challenge right now is that I'm essentially using SAS Enterprise Guide for a task that isn't a super common use-case. The intention however is to reduce human error that comes with copy/paste activities, as well as streamline the process into one comprehensive SAS program with an audit trail of what the program is doing each day rather than leave it up to a spreadsheet tool to do it. What are your guys thoughts as to how feasible this is and how would I get started at a high level to accomplish this?
What I figured would be a good first step is to simply grab the .xlsx file from Google Drive, then paste it into the existing "Intermediary Workbook" and then pick up the output and paste it into the "final macro workbook", basically replacing only the human steps. The next step after that would be to try to tackle the actual Excel workbooks themselves and see if we can replicate the functionality of that intermediary workbook.
A better option would be to get your data team to provide a delimited file (CSV), read that into SAS and do all of your calculations in SAS not Excel then get SAS to update SAP via SAS/ACCESS to SAP (don't know if you have this). That way you can fully automate the process with no manual intervention.
I would avoid Excel if at all possible plus manual interventions for data importation and processing as these are just recipes for things to go wrong. With Excel you cannot fully control how data is read.
Hey, I might be able to get the data as .csv but part of the challenge is there is some components of the process which rely on Bloomberg add-in for Excel, which we can't get that type of functionality elsewhere. As a result, the most "lean" we can get is a single Excel sheet with a bunch of cells pulling Bloomberg data and using that as an input for further calculation.
OK, then read the Bloomberg data into SAS also and do your calculations there.
It may also be possible to pull the Bloomberg data directly with SAS if there is a public interface.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.