Yes, I have seen this approach a fair bit over time. Personally I don't like the temporary files lying around (which also show up in version control), and there is a minor overhead of read/write to the file. If you don't trust your code or want to run parts of it then just add a debug in (and maybe keep the dataset in work: data stored_code; set loop; attrib cmdline format=$2000.; /* Create your commands and output */ cmdline=cats'ods tagsets.excelxp file="',,,,, ; output; cmdline='proc print...; /* Run only commands up to a certain point */ if 1 <= _n_ <= /* Enter a value here of command lines to process */ call execute(cmdlien); end; run;
... View more