Thanks for the suggestion Brent. I wasn’t able to get that method working but it gave me an idea so I played around some more and I was able to come up with a solution.
I created a compiler type for SAS in the Compiler/Program Setup so I could use a function from Compile.s. Then I added a call to the CompileBtnEx function at the top of my macro.
Now I just need to call the macro and it automatically compiles my program and then loads (or refreshes) my output files.