-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example ~/.sasjsrc for SASjs Server on Windows #347
Comments
Please note that a pre-requisite (without Viya or SAS EBI) is to install SASjs Server - as this provides the REST API against your SAS executable. Once you have SASjs Server running (ie, you can submit code in Studio and get a log back) then you can configure the VS Code target. The easiest way to do this is to just click the target icon and follow the prompts (using Ultimately, your If you are having issues I'd be happy to jump on a call to assist: https://4gl.uk/book |
Ok I was able to create a target, and ended up with the following
|
Looks good but I don't see the authConfig, did you try running anything yet? Does SASjs Server work as expected (can you run code in SASjs Studio)? |
I can run code. Do you expect some The only problem seems to be the SASUSER location specified in the
|
is the |
Great! No you are right, there is no authConfig in desktop mode. About the SAS_OPTIONS - in fact, all it does is create the environment variable. It does not add it to the launch command. You can see the launch command in the server log under sasjs_root. Can you try it without the quote marks? |
I can see multiple .log files e.g. I tried removing the quotes without success, the option is not honored:
|
the fact is, I already have a SAS_OPTIONS environment variable used by BASE SAS. I tried to launch sasjs server from a batch file that modifies the environment variable SAS_OPTIONS as desired, but when I try to submit code I get messages like |
Hmm. I wonder if there are some conflicting settings in your config file? What happens if you try to run that command directly?
Note - the autoexec is removed from that command due to a vagarity in how we launch sessions. |
If it would help your use case, we could look to add the config file location as a first class option setting. From experience though it can cause problems (which I suspect might be the issue here) if the |
The command |
I ended up starting my base SAS session with a non-default SASUSER setting, and let sasjs start its SAS session using the default SASUSER, that prevented conflicts. |
I've created an issue in the sasjs/server repo to support a configurable config file: sasjs/server#278 I'll close this one as it appears to have been figured out, but feel free to continue the conversation if this is not the case. |
according to VS Code extension page:
Could you please provide an example of
~/.sasjsrc
file showing how to specify Name (MySASjs), Server Url (http://localhost:5000/) and Server Type (SASJS) for SAS BASE desktop?The text was updated successfully, but these errors were encountered: