I am trying to amend the macro below to accept a macro parameter as the \'location\' argument for a dir command. However I cannot get it to resolve correctly due to the nes
Based on the last sample on this page, instead of the filename statement, try
%let filrf=pipedir;
%let rc=%sysfunc(filename(filrf,%bquote(dir "&location" /b),pipe));
and call the macro without using quotes:
%get_filenames(c:\temp\with spaces);
I also tried macro quoting, but couldn't get it to work.