Route the procedure output to an external file. PROC PRINTTO routes output to an external file. Because NEW is specified, any output written to output-file will overwrite the file's current contents.


proc printto print='output-file' new;
run;