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. The PROC PRINT output is written to the specified external file. See Procedure Output Routed to an External File .
proc printto print='output-file' new;
run;