sasjs / vscode-extension

SAS Linting, Syntax Highlighting, and Code Execution from VS Code
https://marketplace.visualstudio.com/items?itemName=SASjs.sasjs-for-vscode
MIT License
23 stars 4 forks source link

set SAS_EXECFILEPATH environment variable to the file path from which SAS code is being submitted #349

Closed jbodart-argenx closed 2 years ago

jbodart-argenx commented 2 years ago

To be able to identify from which file the SAS code was submitted it would be great to set the environment variable SAS_EXECFILEPATH to the path of that file.

this could be done using injected SAS code such as:

option set=SAS_EXECFILEPATH="c:\test\path\program.sas";

Then it can be retrieved with:

%if %sysfunc(sysexist(SAS_EXECFILEPATH)) %then %do;
   %put SAS_EXECFILEPATH=%sysget(SAS_EXECFILEPATH);
%end;
sasjsbot commented 2 years ago

:tada: This issue has been resolved in version 1.21.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

allanbowe commented 2 years ago

The local SAS_EXECFILEPATH is now available in the remote VS Code SAS session

image