Another way is to make a .bat file. %let Drive=c: ;
%let Path=\temp\A & B\Extracts ;
data _null_;
file 'c:\x.bat';
a='cd "'||"&drive&path"||'"';
put a;
b='dir *.pdf > x.txt';
put b;
run;
options noxwait;
x 'c:\x.bat';
x 'del c:\x.bat';
Ksharp
... View more