-
Notifications
You must be signed in to change notification settings - Fork 6
Description
I was able to use your package calling SAS from a corporate server, and so far it's been awesome!
I had to set several of the SAS options, where basically everything is in a different location: SAS, the SAS config file, and the autoexec file, and my working directory.
To do so, I had been using the following in my sasopts. This works fine when I don't want to use collectcode
. The sysparm options are for setting certain system environment parameters that are required for this particular autoexec file.
"-autoexec /serverpath/autoexec.sas -sysparm var1=sysparam1,var2=sysparam2"
If I understand correctly how collectcode works, then applying the option to a code chunk will write that code chunk to the end of the autoexec. However, this is not working in my situation where my autoexec does not exist within my working directory and cannot be edited in its original directory. My current workaround is to make a new autoexec. It looks something like this, where I had to set some environment variables that are needed for passing through to the autoexec.
%let var1=sysparam1;
%let var2=sysparam2;
%include "/serverpath/autoexec.sas";
Would it be possible to expand this function to additionally look for the autoexec in a defined location, then write and use a temporary new autoexec file with the arguments for the autoexec and system parameters?