This is kind of a wild question, is there SAS code that can automatically open (not assigning it as a library) an existing ms access database file?
The X command, if enable in your install, will start any program you can run from a command prompt. Pass the name of the file the program is to open and that should work. You will likely need to have the full path the executeable for Access and use the full path to the file.
I'm not sure I follow. Here is what Im trying to do: I have a report that uses SAS to pull and organize the data. Once the program completes, it dumps it into an access database a VBA script will run and produce the excel output. Without having to wait for the SAS program to finish and then clicking on the access database, I would like the SAS program to automatically open the access database and begin running the VBA code that I have. At this point, I just need SAS to somehow open my existing ms access file from a specific location where it resides. My ultimate goal down the road is to code and automate the entire process in SAS.
I think it would be a lot easier for SAS to send the required output to Excel directly rather than trying to "daisy chain" it via Access. What is this output?
It is a dataset of about 1500 records. It would need to be dumped into an existing excel template, run the VBA macros within excel then save as a new file.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
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.