If you want the latest from a series of files:
data files;
rc = filename(dref,"C:/mydata");
did = dopen(dref);
if did
then do;
do i = 1 to dnum(did);
name = dread(did,i);
if substr(name,1,11) = "SampleData_" then output;
end;
rc = dclose(did);
end;
rc = filename(dref);
keep name;
run;
proc sort data=files;
by descending name;
run;
data _null_;
set files;
call symputx('name',name);
stop;
run;
proc import out= cars
datafile= "C:/mydata/&name."
... View more