@SASKiwi, I finally got it to work with a little more trial and error on your code! Here was the final script:
DATA _NULL_ ;
rc = filename('fpath',"/sae/aal_labapm/01/mortgage/msracq/DATA WAREHOUSE/DWACQ/REPORT FILES/MSR0028/");
did=dopen('fpath');
do i=1 to dnum(did);
file_name=dread(did,i);
rc = filename('fname',cats(pathname('fpath'),'/',file_name));
if rc = 0 then rc = fdelete('fname');
end;
RUN ;
I think the problem was the slash between the pathname and filename in the cats function.
I want to thank everyone who has been helping me with this the past couple of days. It has been a big challenge but one that puts me closer to finishing this project and making my boss happy! 😁
... View more