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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.