Of course there may be several ways, but you can run the SAS program as a shell. (I work with Windows/DOS but you can adapt this to UNIX as well).
What you need to do is launch an instance of SAS and have that instance run your SAS code.
In windows you need to pass the following args to the OS for it to run.
...\sas.exe -autoexec "your SAS program"
When called, the SAS instance will start and run the code in your autoexec file location. What I do when I use this method is to have the ENDSAS statement in the last line of the SAS program so that the SAS instance will close after it finishes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.