Hi Chris,

I'm using SAS EG 8.1 version. after adding the wildcard [%let download_from = %sysfunc(getoption(work))&delim.%str(*).csv;] and create file [filename src "%sysfunc(getoption(work))&delim.&datafile..csv";] code. My code doesn't work, i have tired to modified the code to download few datasets from Work.

/* Data to export */
%let lib = WORK;
%let datafile = %str(*);

/* Local folder to download to */
%let download_to = C:\Documents\New_folder;

/* detect proper delim for UNIX vs. Windows */
%let delim=%sysfunc(ifc(%eval(&sysscp. = WIN),\,/));

%let download_from =
%sysfunc(getoption(work))&delim.%str(*).xlsx;

filename src "%sysfunc(getoption(work))&delim.&datafile..xlsx";

proc export data=&lib..&datafile.
dbms=xlsx
file=src
replace;
run;

filename src clear;