Hi, i have PC sas open(interactive) and signed into unix server(remote). i want to find the path of my current program. how can i achieve this. i know that in windows we can use %sysget(SAS_EXECFILEPATH) but the system macro variable is not present in remote unix session. Scenario: what is needed. rsubmit; create a macro variable that contains the path of the my current SAS program that i have it open in PC SAS Interactive. endrsubmit; so far what i tried. I Tried looking through this community but none of the suggestions seems to work. eg: https://communities.sas.com/t5/SAS-Communities-Library/Find-current-directory-path/ta-p/485785. %macro curdir; %local fr rc curdir; %let rc = %sysfunc(filename(fr,.)); %let curdir = %sysfunc(pathname(&fr)); %let rc = %sysfunc(filename(fr)); %put &curdir; %mend curdir; %curdir; this suggestion works only in WINDOWS but not in Unix it give me a value of --> "/home/userid" . in windows from sashelp.vextfl we can find the path of program but not able to in unix - Raj
... View more