You might want to clarify why you want it in a macro, e.g. parameters etc. otherwise you will get some interesting results. (Nice one Vladislaff). What about: data _null_; my_code="data _null_; set books.list; file '<filename>' dlm=','; put _all_; run;'; call execute(tranwrd(strip(my_code),"<filename>","list.txt"); run;
... View more