Hi All, Im using a code that helps read the contents of a particular directory, as below: %let filepath = "&sharedrive\Projects"; filename fref PIPE %sysfunc(quote(dir &filepath /AD /b)) lrecl=32767; data tmp; infile fref truncover; input study $1000; dir="&sharedrive\Projects"; run; On running the code, there is no error and I also get the correct number of records [there were 105 subfolders in Projects directory and the dataset TMP also had 105 records). But for some reason the STUDY variable is blank instead of having the names of the subfolders. [Please note that the "sharedrive" macro variable resolves correctly based on my setup.sas file that I call in the main program]. Thanks in advance. Kally
... View more