I have a quick SAS question regarding the “x” command. I need to access the following directory with cmd to createa list of csv files in a particular folder. %letDrive=M:; %letPath=%nrstr(Clients\Reporting\01Data\A & B\Extracts); x "&drive."; x "cd&path."; x "dir *.csv >xlsFileList.txt"; Unfortunately, this failed because of the “&”sign in the directory. Testing with cmd directly, I found that entering the following command works: cd Clients\Reporting\01Data\"A & B"\Extracts. Logically we followed this by running the SAScommand x ‘cd Clients\Reporting\01 Data\”A & B”\Extracts.’; Once again, this failed. I have been stuck on this for the past hour. It would be much appreciated if someone could provide a solution. Thanks Daniel
... View more