In reply to Peter Lancashire.

No running of system commands through PIPE or X was required
Filename here '.' ;
%let here= %sysfunc( pathname( here ));
should have provided what you wanted since EG became available