In SAS Viya, when running code in SAS Studio, the automatic macro variable _SASPROGRAMFILE contains the full path (or URI) of the program file. However, when running the same program using the VS Code SAS extension, _SASPROGRAMFILE resolves to the filename only, without the directory path. Is there a way to determine the full path of the program file when running from VS Code? Does SAS Viya expose this information through any existing environment variable, or other macro variable? Any hints or recommended approaches?
... View more