sasjs / vscode-extension

SAS Linting, Syntax Highlighting, and Code Execution from VS Code

Home Page:https://marketplace.visualstudio.com/items?itemName=SASjs.sasjs-for-vscode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jbodart-argenx opened this issue ยท comments

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;

๐ŸŽ‰ This issue has been resolved in version 1.21.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€

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

image