Hi All, I am trying to read in all .sas file from one location and then put in another file so I can run this file as batch file. I am creating a macro variable filename which is not getting resolved in the "put" statement below. filename inprog pipe 'dir C:\test\*.sas /b'; filename dbatch "C:\test2\dbatch.sas"; data _null_; infile inprog truncover; input file_name $32.; call execute ('data _null_ ; infile inprog truncover; input file_name $32. ; call symput("filename",filename) ; run;' ); file dbatch; put '%include ' '"C:\test2\&filename." ' ';' ; run;
... View more