I have the following piece of SAS code that I run on Windows and works well. But now I am looking to run it from unix. I guess multiple things could go wrong here -- initially I was figuring out about double quotes in the filepath definition that got resolved. But now I am having issues as to how to make my code run on unix. So, what would be the equivalent Unix command for the filename command line? Should I use ls -al or something? ... My equivalent folder in Unix is
/home/personal/bulk file all &date.
Note that there is a space in the folder name. Even though Windows seems to handle this, would be it also concern in Unix?
Appreciate your help deeply.
Windows
%let filepath = %bquote("C:\Personal\bulk file all &date");
filename CDR_Bulk pipe "dir &filepath /a:-d-h-s /b /s";
data tempsetup;
infile CDR_Bulk;
input ;
schedulefile=_infile_;
if scan(schedulefile,-1,'\') = "test.txt" then delete;
run;