I am on SAS Grid, Linux installation. I have used this code before to get a list of all of the files in a directory. However, today I have a folder that's on a Windows server and I am wondering if there is a way to adapt this code to this problem. What I mostly would need is a way to specify the server to go to.
%let folder = /sas/data/Risk_Mgmt/;
/*Get list of files in txt folder*/
data gl_txts;
length fref $8 fname $200;
did = filename(fref,"&folder.");
did = dopen(fref);
do i = 1 to dnum(did);
fname = dread(did,i);
output;
end;
did = dclose(did);
did = filename(fref);
keep fname;
run;
Trying to adapt it to accept something like:
%let folder = \\server.com\share$\Wes\Data;