Current File Path
Wednesday, 29 October, 2014
⨳ 1 minute read ⨳ 34 words ⨳ sas ⨳ snippet ⨳Sometimes I need to reference the path of the current (saved) file. Thanks to a stack overflow post, I can easily do that.
%let filepath=%substr(%sysget(SAS_EXECFILEPATH),1,
%eval(%length(%sysget(SAS_EXECFILEPATH))-%length(%sysget(SAS_EXECFILENAME))));
%put &FILEPATH;