sassoftware / vscode-sas-extension

This SAS Extension for Visual Studio Code provides support for the SAS language, including features such as SAS syntax highlighting, code completion, hover help, code folding, outline, SAS code snippets and run SAS code.
https://sassoftware.github.io/vscode-sas-extension/
Apache License 2.0
119 stars 48 forks source link

Add _SASPROGRAMDIR macro variable #1264

Open smorrisj opened 1 day ago

smorrisj commented 1 day ago

Is your feature request related to a problem? Please describe. Request to add _SASPROGRAMDIR macro variable to our existing set.

Describe the solution you'd like When a user sas file is executed, we'd like to have access to the directory that the file is running in, via a macro variable named _SASPROGRAMDIR. If the path to my sas file is /test/myfile.sas, then I would expect _SASPROGRAMDIR to have the value /test. This would be super useful in having the ability to use relative links.

cjdinger commented 5 hours ago

I saw this referenced in another issue, but also a macro var that identifies the client app would be useful. We have customers who want to adapt their programs to be aware that they are running in VS Code.

EG does this:

GLOBAL _CLIENTAPP 'SAS Enterprise Guide'
GLOBAL _CLIENTAPPABBREV EG